/* Reset and base styles */
        #quote-designer-container * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }
        
        #quote-designer-container {
            position: relative;
            width: 100%;
            max-width: 1400px;
            margin: 30px auto;
            padding: 20px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.5);
            overflow: hidden;
            z-index: 1;
        }
        
        #quote-designer-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 228, 230, 0.4) 0%, rgba(221, 242, 253, 0.4) 100%);
            z-index: -1;
        }
        
        .designer-header {
            text-align: center;
            margin-bottom: 25px;
            color: #5a67d8;
            font-weight: 600;
            font-size: 28px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .designer-body {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            margin-bottom: 30px;
        }
        
        .designer-panel {
            flex: 1;
            min-width: 300px;
            padding: 20px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.6);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        
        .panel-title {
            font-size: 18px;
            margin-bottom: 15px;
            color: #4c566a;
            font-weight: 600;
            display: flex;
            align-items: center;
        }
        
        .panel-title i {
            margin-right: 10px;
            font-size: 20px;
        }
        
        /* Preview area */
        .preview-container {
            position: relative;
            width: 100%;
            height: 500px;
            margin: 0 auto 20px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
            background: #f8f9fa;
        }
        
        .preview-boundary {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 1080px;
            height: 1350px;
            max-width: 90%;
            max-height: 90%;
            border: 2px dashed rgba(92, 107, 192, 0.6);
            pointer-events: none;
            z-index: 2;
        }
        
        #preview-area {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        #background-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            position: absolute;
            transition: transform 0.3s ease;
        }
        
        #quote-text {
            position: absolute;
            text-align: center;
            max-width: 80%;
            padding: 20px;
            color: #2d3748;
            font-family: 'Bebas Neue', cursive;
            transition: all 0.3s ease;
            cursor: move;
            z-index: 3;
        }
        
        #author-section {
            position: absolute;
            bottom: 40px;
            right: 40px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            z-index: 3;
        }
        
        #author-image {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 10px;
            border: 3px solid white;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        #author-name {
            font-family: 'Arial', sans-serif;
            font-size: 16px;
            font-weight: 600;
            color: white;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
            background: rgba(0,0,0,0.4);
            padding: 4px 12px;
            border-radius: 12px;
        }
        
        /* Form controls */
        .control-group {
            margin-bottom: 15px;
        }
        
        .control-label {
            display: block;
            margin-bottom: 6px;
            font-size: 14px;
            color: #4a5568;
            font-weight: 500;
        }
        
        input, select, textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 14px;
            background: rgba(255, 255, 255, 0.7);
            transition: all 0.3s;
        }
        
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: #a3bffa;
            box-shadow: 0 0 0 3px rgba(163, 191, 250, 0.3);
        }
        
        textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 20px;
            background: linear-gradient(135deg, #7e9af9 0%, #667eea 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        
        .btn i {
            margin-right: 8px;
        }
        
        .adjustment-controls {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 15px;
        }
        
        .adjust-btn {
            padding: 10px;
            background: rgba(39, 187, 245, 0.8);
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }
        
        .adjust-btn:hover {
            background: rgba(125, 154, 249, 0.1);
        }
        
        .color-picker-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .color-preview {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        
        /* Templates section */
        .templates-section {
            width: 100%;
            padding: 20px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.6);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        
        .templates-title {
            font-size: 18px;
            margin-bottom: 15px;
            color: #4c566a;
            font-weight: 600;
        }
        
        .templates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 15px;
        }
        
        .template-item {
            height: 80px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        
        .template-item:hover {
            transform: scale(1.05);
        }
        
        .template-item.active {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
        }
        
        .template-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 25px;
        }
        
        .download-btn {
            background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
        }
        
        .reset-btn {
            background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .designer-body {
                flex-direction: column;
            }
            
            .preview-container {
                height: 400px;
            }
            
            .adjustment-controls {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        /* Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        #quote-designer-container {
            animation: fadeIn 0.5s ease-out;
        }
        
        .designer-panel {
            animation: fadeIn 0.7s ease-out;
        }
        
        /* Font options */
        .font-option {
            display: inline-block;
            padding: 5px 10px;
            margin: 0 5px 5px 0;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .font-option:hover, .font-option.active {
            background: rgba(125, 154, 249, 0.1);
            border-color: #7e9af9;
        }