        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #0a0a0f;
            --bg-secondary: #13131a;
            --bg-tertiary: #1a1a24;
            --bg-elevated: #1f1f2e;
            --bg-card: #16161f;

            --accent-500: #6366f1;
            --accent-600: #4f46e5;
            --accent-700: #4338ca;
            --accent-400: #818cf8;

            --border-primary: #2a2a3e;
            --border-secondary: #3a3a4e;
            --border-tertiary: #4a4a5e;

            --text-primary: #e8e8f0;
            --text-secondary: #b8b8c8;
            --text-tertiary: #88889a;
            --text-muted: #68687a;

            --success: #10b981;
            --error: #ef4444;
            --warning: #f59e0b;

            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6);
            --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.7);

            --radius-sm: 0.375rem;
            --radius-md: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;

            --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Top Bar */
        .top-bar {
            background: rgba(26, 26, 36, 0.95);
            backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid var(--border-primary);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow-lg);
        }

        .top-bar-content {
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.875rem;
        }

        .logo-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            overflow: hidden;
        }

        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .logo-text h1 {
            font-size: 1.375rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.025em;
            margin-bottom: 0.125rem;
        }

        .logo-text p {
            font-size: 0.8125rem;
            color: var(--text-tertiary);
            font-weight: 500;
        }

        /* Container */
        .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
        }

        .main-content {
            display: grid;
            grid-template-columns: 200px 1fr 1fr;
            gap: 0;
        }

        @media (max-width: 1280px) {
            .main-content {
                grid-template-columns: 180px 1fr 1fr;
            }
        }

        @media (max-width: 1024px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            .container {
                padding: 1.5rem;
            }
        }

        /* Left Navigation */
        .left-nav {
            background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
            min-height: calc(100vh - 80px);
            padding: 2rem 0;
            display: flex;
            flex-direction: column;
        }

        .nav-menu {
            flex: 1;
        }

        .nav-item {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 0.875rem;
            cursor: pointer;
            transition: var(--transition);
            color: var(--text-tertiary);
            font-size: 13px;
            font-weight: 500;
            border-left: 3px solid transparent;
            text-decoration: none;
        }

        .nav-item:hover {
            background: rgba(99, 102, 241, 0.1);
            color: var(--text-primary);
        }

        .nav-item.active {
            background: rgba(99, 102, 241, 0.15);
            color: var(--accent-400);
            border-left-color: var(--accent-500);
        }

        .nav-item i {
            font-size: 1.125rem;
            width: 20px;
            text-align: center;
        }

        .nav-footer {
            padding: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: auto;
        }

        .nav-footer p {
            font-size: 11px;
            color: var(--text-tertiary);
            text-align: center;
            line-height: 1.5;
        }

        /* Main Form Area */
        .form-area {
            background: var(--bg-primary);
            padding: 0;
            overflow-y: auto;
            overflow-x: hidden;
            max-height: calc(100vh - 80px);
        }

        .form-area .scrollable-content {
            padding: 3rem 2.5rem;
            max-width: 100%;
            box-sizing: border-box;
        }

        .form-header {
            margin-bottom: 2.5rem;
        }

        .form-header-with-action {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 2.5rem;
        }

        .form-header-content {
            flex: 1;
        }

        .form-header h2 {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .form-header h2 span {
            color: var(--accent-400);
        }

        .form-header p {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
        }

        .load-sample-btn {
            padding: 0.625rem 1rem;
            background: var(--accent-500);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .load-sample-btn:hover {
            background: var(--accent-600);
            transform: translateY(-1px);
        }

        .load-sample-btn i {
            font-size: 14px;
        }

        .form-navigation {
            display: flex;
            gap: 1rem;
            margin-top: 2.5rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-primary);
        }

        .btn-back, .btn-next {
            flex: 1;
            padding: 10px 24px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
            border: none;
        }

        .btn-back {
            background: transparent;
            border: 1.5px solid var(--border-secondary);
            color: var(--text-primary);
        }

        .btn-back:hover {
            background: var(--bg-elevated);
            border-color: var(--border-tertiary);
        }

        .btn-next {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            box-shadow: var(--shadow-md);
        }

        .btn-next:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        /* Sidebar - now right preview */
        .sidebar {
            background: var(--bg-card);
            overflow: hidden;
            box-shadow: var(--shadow-xl);
            border-left: 1px solid var(--border-primary);
            display: flex;
            flex-direction: column;
        }

        .sidebar .scrollable-content {
            padding: 1.5rem;
        }

        .step-content {
            display: none;
            max-width: 100%;
            overflow-x: hidden;
        }

        .step-content.active {
            display: block;
        }

        .preview-info {
            background: var(--bg-elevated);
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-primary);
        }

        .preview-info p {
            font-size: 12px;
            color: var(--text-secondary);
            text-align: center;
            line-height: 1.5;
        }

        .scrollable-content {
            overflow-y: auto;
        }

        .form-area .scrollable-content {
            max-height: 100%;
        }

        .sidebar .scrollable-content {
            max-height: calc(100vh - 140px);
        }

        .scrollable-content::-webkit-scrollbar,
        .form-area::-webkit-scrollbar {
            width: 6px;
        }

        .scrollable-content::-webkit-scrollbar-track,
        .form-area::-webkit-scrollbar-track {
            background: transparent;
        }

        .scrollable-content::-webkit-scrollbar-thumb,
        .form-area::-webkit-scrollbar-thumb {
            background: var(--border-secondary);
            border-radius: 3px;
        }

        .scrollable-content::-webkit-scrollbar-thumb:hover,
        .form-area::-webkit-scrollbar-thumb:hover {
            background: var(--border-tertiary);
        }

        .sidebar-section {
            padding: 0;
            margin-bottom: 2rem;
            max-width: 100%;
            overflow: hidden;
        }

        .sidebar-section:last-child {
            margin-bottom: 0;
        }

        .section-header {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1rem;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.875rem;
        }

        .form-grid .form-group {
            margin-bottom: 0;
        }

        .form-full {
            grid-column: 1 / -1;
        }

        /* Template Cards */
        .template-cards {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.75rem;
            max-width: 100%;
            width: 100%;
        }

        @media (max-width: 1400px) {
            .template-cards {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 1400px) {
            .template-preview {
                height: 260px;
            }
        }

        @media (max-width: 1024px) {
            .template-cards {
                grid-template-columns: repeat(2, 1fr);
            }

            .template-preview {
                height: 280px;
            }
        }

        @media (max-width: 768px) {
            .template-cards {
                grid-template-columns: 1fr;
            }

            .template-preview {
                height: 300px;
            }
        }

        .template-card {
            border: 2px solid var(--border-secondary);
            border-radius: 4px;
            padding: 0.5rem;
            cursor: pointer;
            transition: var(--transition);
            background: var(--bg-elevated);
            min-width: 0;
            overflow: hidden;
            box-sizing: border-box;
        }

        .template-card:hover {
            border-color: var(--accent-400);
            transform: translateY(-2px);
        }

        .template-card.selected {
            border-color: var(--accent-500);
            background: rgba(99, 102, 241, 0.05);
        }

        .template-preview {
            width: 100%;
            height: 240px;
            border-radius: 4px;
            margin-bottom: 0.5rem;
            overflow: hidden;
            background: white;
            border: 1px solid var(--border-secondary);
            box-sizing: border-box;
            position: relative;
        }

        .template-preview-content {
            transform: scale(0.26);
            transform-origin: top left;
            width: 384.6%;
            height: 384.6%;
            max-width: none;
        }

        .template-info {
            text-align: center;
        }

        .template-name {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.125rem;
        }

        .template-description {
            font-size: 10px;
            color: var(--text-secondary);
        }

        .template-card.selected .template-name {
            color: var(--accent-400);
        }

        /* Color Picker */
        .color-picker-section {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 0.75rem 1rem;
            background: var(--bg-elevated);
            border-radius: 6px;
            border: 1px solid var(--border-secondary);
        }

        .color-swatches {
            display: flex;
            gap: 0.375rem;
            align-items: center;
            flex: 1;
        }

        .color-swatch {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid transparent;
            transition: var(--transition);
            position: relative;
            flex-shrink: 0;
        }

        .color-swatch:hover {
            transform: scale(1.15);
        }

        .color-swatch.selected {
            border-color: var(--text-primary);
            box-shadow: 0 0 0 2px var(--bg-primary);
        }

        .color-swatch.default {
            background: white;
            border: 2px solid var(--border-secondary);
        }

        .color-swatch.default::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 10%;
            right: 10%;
            height: 2px;
            background: #ef4444;
            transform: translateY(-50%) rotate(-45deg);
        }

        .custom-color-btn {
            padding: 0.375rem 0.75rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border-secondary);
            border-radius: 4px;
            color: var(--text-primary);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
        }

        .custom-color-btn:hover {
            border-color: var(--accent-400);
            background: var(--bg-tertiary);
        }

        /* Modal/Popup */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: var(--bg-secondary);
            border: 1px solid var(--border-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .modal-header {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
        }

        .modal-body {
            margin-bottom: 1.5rem;
        }

        .modal-field {
            margin-bottom: 1rem;
        }

        .modal-field:last-child {
            margin-bottom: 0;
        }

        .modal-field label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

        .modal-field input[type="text"] {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-secondary);
            border-radius: 4px;
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 13px;
            font-family: monospace;
            box-sizing: border-box;
        }

        .modal-field input[type="text"]:focus {
            outline: none;
            border-color: var(--accent-400);
        }

        .modal-field input[type="color"] {
            width: 100%;
            height: 48px;
            border: 1px solid var(--border-secondary);
            border-radius: 4px;
            cursor: pointer;
            background: transparent;
        }

        .modal-field input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 2px;
        }

        .modal-field input[type="color"]::-webkit-color-swatch {
            border: none;
            border-radius: 3px;
        }

        .modal-actions {
            display: flex;
            gap: 0.75rem;
            justify-content: flex-end;
        }

        .modal-btn {
            padding: 0.5rem 1rem;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid var(--border-secondary);
        }

        .modal-btn-cancel {
            background: transparent;
            color: var(--text-secondary);
        }

        .modal-btn-cancel:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .modal-btn-save {
            background: var(--accent-500);
            color: white;
            border-color: var(--accent-500);
        }

        .modal-btn-save:hover {
            background: var(--accent-600);
        }

        /* Notification Modal */
        .notification-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.2s ease-out;
        }

        .notification-modal.active {
            display: flex;
        }

        .notification-content {
            background: var(--bg-secondary);
            border: 1px solid var(--border-secondary);
            border-radius: 12px;
            padding: 2rem;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            text-align: center;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .notification-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 1.5rem;
            border-radius: 50%;
            background: var(--accent-500);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 32px;
        }

        .notification-icon.success {
            background: #10b981;
        }

        .notification-icon.error {
            background: #ef4444;
        }

        .notification-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .notification-message {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }

        .notification-btn {
            padding: 0.625rem 1.5rem;
            background: var(--accent-500);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
        }

        .notification-btn:hover {
            background: var(--accent-600);
        }

        /* Category Navigation */
        .category-nav {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid var(--border-secondary);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .category-nav::-webkit-scrollbar {
            height: 4px;
        }

        .category-nav::-webkit-scrollbar-thumb {
            background: var(--border-secondary);
            border-radius: 2px;
        }

        .category-tab {
            padding: 0.75rem 1.25rem;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            white-space: nowrap;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: var(--transition);
        }

        .category-tab:hover {
            color: var(--text-primary);
        }

        .category-tab.active {
            color: var(--accent-500);
            border-bottom-color: var(--accent-500);
        }

        /* Form Elements */
        .form-group {
            margin-bottom: 0.875rem;
        }

        .form-group:last-child {
            margin-bottom: 0;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.375rem;
            color: var(--text-primary);
            font-weight: 600;
            font-size: 13px;
        }

        .label-with-checkbox {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.375rem;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .checkbox-container input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border: 1.5px solid var(--border-secondary);
            border-radius: 2px;
            background: transparent;
            cursor: pointer;
            position: relative;
            transition: var(--transition);
            margin: 0;
            padding: 0 !important;
        }

        .checkbox-container input[type="checkbox"]:hover {
            border-color: var(--border-tertiary);
        }

        .checkbox-container input[type="checkbox"]:checked {
            background: var(--accent-500);
            border-color: var(--accent-500);
        }

        .checkbox-container input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            left: 3.5px;
            top: 1px;
            width: 3px;
            height: 6px;
            border: solid white;
            border-width: 0 1.5px 1.5px 0;
            transform: rotate(45deg);
        }

        .checkbox-label {
            font-size: 11px;
            font-weight: 500;
            color: var(--text-tertiary);
            cursor: pointer;
            user-select: none;
            margin-bottom: 0 !important;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 8px 16px;
            border: 1.5px solid var(--border-secondary);
            border-radius: 4px;
            font-size: 13px;
            font-family: inherit;
            background: var(--bg-elevated);
            color: var(--text-primary);
            transition: var(--transition);
            font-weight: 400;
        }

        .form-group select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23b8b8c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            padding-right: 2.5rem;
        }

        .form-group input:hover,
        .form-group textarea:hover {
            border-color: var(--border-tertiary);
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent-500);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            font-size: 13px;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 70px;
            font-family: inherit;
            line-height: 1.5;
        }


        /* Photo Upload */
        .photo-upload-area {
            border: 2px dashed var(--border-secondary);
            border-radius: 4px;
            padding: 1.25rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: var(--bg-elevated);
        }

        .photo-upload-area:hover {
            border-color: var(--accent-500);
            background: var(--bg-tertiary);
        }

        .photo-upload-area.has-image {
            border-style: solid;
            border-color: var(--border-secondary);
            padding: 1rem;
            background: transparent;
        }

        .photo-preview {
            width: 120px;
            height: 120px;
            margin: 0 auto;
            border-radius: 4px;
            overflow: hidden;
        }

        .photo-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-upload-text {
            color: var(--text-tertiary);
            font-size: 12px;
            margin-top: 0.5rem;
            font-weight: 500;
        }

        .photo-upload-icon {
            font-size: 2rem;
            color: var(--text-tertiary);
        }

        .photo-change-btn {
            margin-top: 0.75rem;
            padding: 0.5rem 1rem;
            background: var(--accent-500);
            color: white;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: var(--transition);
            cursor: pointer;
        }

        .photo-change-btn i {
            font-size: 14px;
        }

        .photo-upload-area:hover .photo-change-btn {
            background: var(--accent-600);
            transform: translateY(-1px);
        }

        /* Dynamic Items */
        .dynamic-item {
            background: var(--bg-elevated);
            border: 1px solid var(--border-secondary);
            border-radius: 4px;
            padding: 1rem;
            margin-bottom: 0.75rem;
            transition: var(--transition);
        }

        .dynamic-item:hover {
            box-shadow: var(--shadow-sm);
            border-color: var(--border-tertiary);
        }

        .item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
            padding-bottom: 0.625rem;
            border-bottom: 1px solid var(--border-secondary);
        }

        .item-header h4 {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .btn-remove {
            background: transparent;
            border: 1.5px solid var(--border-secondary);
            color: var(--error);
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
        }

        .btn-remove:hover {
            background: var(--error);
            color: white;
            border-color: var(--error);
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        .btn-add {
            width: 100%;
            background: var(--bg-elevated);
            border: 1.5px solid var(--border-secondary);
            color: var(--text-primary);
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            font-family: 'Poppins', sans-serif;
        }

        .btn-add:hover {
            background: var(--bg-tertiary);
            border-color: var(--accent-500);
            color: var(--accent-400);
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        .btn-add:active {
            transform: translateY(0);
        }


        .btn-export {
            background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
            color: white;
            border: none;
            padding: 10px 24px;
            font-size: 13px;
            font-weight: 600;
            border-radius: 4px;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Poppins', sans-serif;
        }

        .btn-export i {
            font-size: 1rem;
        }

        .btn-export:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn-export:active {
            transform: translateY(0);
            box-shadow: var(--shadow-md);
        }

        #cv-preview {
            background: white;
            width: 100%;
            height: auto;
            margin: 0 auto;
            box-shadow: var(--shadow-lg);
            border-radius: 4px;
            overflow: hidden;
            transform: scale(0.95);
            transform-origin: top center;
        }

        /* CV Template Styles */
        .cv-template {
            width: 210mm;
            height: 297mm;
            padding: 15mm;
            line-height: 1.35;
            font-size: 11px;
            box-sizing: border-box;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        /* Template A - Elegant White */
        .template-a {
            background: #ffffff;
            color: #2c2c2c;
            padding: 10mm 15mm 10mm 15mm !important;
            width: 100%;
        }

        .template-a .cv-header {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 5px;
            padding-bottom: 0;
            flex: 0 0 auto;
        }

        .template-a .header-separator {
            border-bottom: 1px solid #333;
            margin-bottom: 8px;
            flex: 0 0 auto;
        }

        .template-a .cv-photo {
            width: 32mm;
            height: 40mm;
            border-radius: 2px;
            flex-shrink: 0;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .template-a .header-info {
            flex: 1;
            text-align: center;
        }

        .template-a .cv-label {
            font-size: 13px;
            color: #666;
            margin-bottom: 3px;
        }

        .template-a h1 {
            font-size: 20px;
            margin-bottom: 6px;
            color: #000;
            font-weight: 400;
            letter-spacing: 0;
        }

        .template-a .contact-info {
            font-size: 11px;
            color: #000;
            line-height: 1.5;
        }

        .template-a .contact-info div {
            margin-bottom: 2px;
        }

        .template-a .about-section {
            padding: 8px 15px;
            margin-bottom: 10px;
            text-align: center;
            font-style: italic;
            color: #333;
            font-size: 11px;
            line-height: 1.4;
            flex: 0 0 auto;
        }

        .template-a .section {
            margin-bottom: 10px;
            flex: 0 0 auto;
        }

        .template-a .section-title {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            color: #000;
            margin-bottom: 5px;
            padding-bottom: 3px;
            border-bottom: 1px solid #333;
            letter-spacing: 1px;
            text-align: center;
        }

        .template-a .job-item,
        .template-a .education-item {
            margin-bottom: 8px;
            padding-left: 0;
        }

        .template-a .job-period,
        .template-a .education-period {
            color: #000;
            font-size: 11px;
            font-weight: 400;
            margin-bottom: 3px;
        }

        .template-a .job-title,
        .template-a .education-title {
            color: #000;
            font-weight: 700;
            font-size: 11px;
            margin-bottom: 3px;
            display: flex;
            align-items: flex-start;
            gap: 6px;
        }

        .template-a .job-title::before,
        .template-a .education-title::before {
            content: "■";
            font-size: 8px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .template-a .job-duties {
            font-size: 11px;
            color: #333;
            line-height: 1.5;
            margin-top: 5px;
        }

        .template-a .job-duties ul {
            margin: 0;
            padding-left: 12px;
        }

        .template-a .job-duties li {
            margin-bottom: 2px;
        }

        .template-a .section p,
        .template-a .section div {
            color: #333;
            line-height: 1.5;
            font-size: 11px;
        }

        /* Template B - Modern Header */
        .template-b {
            background: #fff;
            color: #000;
            padding: 0 !important;
            width: 100%;
        }

        .template-b .cv-top-bar {
            background: #4A6075;
            height: 35px;
            position: relative;
            width: 100%;
            flex: 0 0 auto;
        }

        .template-b .cv-top-bar::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 90px;
            width: 0;
            height: 0;
            border-left: 15px solid transparent;
            border-right: 15px solid transparent;
            border-top: 15px solid var(--header-color, #4A6075);
        }

        .template-b .cv-header {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            padding: 30px 50px 15px 50px;
            margin-bottom: 5px;
            flex: 0 0 auto;
        }

        .template-b .cv-photo {
            width: 120px;
            height: 150px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .template-b .header-info {
            flex: 1;
            padding-top: 5px;
        }

        .template-b h1 {
            font-size: 24px;
            font-weight: 700;
            color: #4A6075;
            margin-bottom: 3px;
            letter-spacing: 3px;
            text-transform: uppercase;
        }

        .template-b .job-position {
            font-size: 10px;
            color: #000;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 12px;
            font-weight: 400;
        }

        .template-b .contact-info {
            font-size: 9px;
            color: #000;
        }

        .template-b .contact-info div {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 3px;
        }

        .template-b .contact-info i {
            color: #4A6075;
            font-size: 9px;
            width: 11px;
        }

        .template-b .cv-body {
            padding: 0 50px 30px 50px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .template-b .section {
            margin-bottom: 12px;
            flex: 0 0 auto;
        }

        .template-b .section-title {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            color: #000;
            margin-bottom: 6px;
            padding-bottom: 8px;
            letter-spacing: 1.5px;
            position: relative;
        }

        .template-b .section-title::before {
            content: '';
            position: absolute;
            bottom: 1px;
            left: 0;
            width: 20%;
            height: 4px;
            background: var(--header-color, #4A6075);
        }

        .template-b .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: var(--header-color, #4A6075);
        }

        .template-b .section-content {
            font-size: 9px;
            line-height: 1.5;
            color: #000;
            text-align: justify;
        }

        .template-b .job-item,
        .template-b .education-item {
            margin-bottom: 10px;
            font-size: 9px;
        }

        .template-b .job-header {
            font-weight: 700;
            color: #000;
            margin-bottom: 2px;
            font-size: 9px;
        }

        .template-b .job-meta {
            font-style: italic;
            color: #444;
            margin-bottom: 4px;
            font-size: 9px;
        }

        .template-b .job-duties {
            margin-top: 3px;
            margin-left: 0.8rem;
        }

        .template-b .job-duties strong {
            font-size: 9px;
        }

        .template-b .job-duties ul {
            margin: 2px 20px 0 0;
            padding-left: 18px;
            list-style-type: disc;
        }

        .template-b .job-duties li {
            margin-bottom: 1px;
            line-height: 1.5;
            font-size: 9px;
        }

        .template-b .skills-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0 40px;
        }

        .template-b .skills-grid ul {
            margin: 0;
            padding-left: 18px;
            list-style-type: disc;
        }

        .template-b .skills-grid li {
            margin-bottom: 2px;
            font-size: 9px;
            line-height: 1.5;
        }

        .template-b .course-item {
            margin-bottom: 3px;
            font-size: 9px;
            line-height: 1.4;
        }

        .template-b .course-date {
            font-weight: 700;
            color: #000;
        }

        .template-b .achievements-item {
            margin-bottom: 3px;
            font-size: 9px;
        }

        .template-b .achievements-item strong {
            font-weight: 700;
        }

        /* RODO Footer */
        .rodo-footer {
            background: #f5f5f5;
            padding: 8px 12px;
            font-size: 8px;
            line-height: 1.4;
            color: #333;
            text-align: justify;
            border-top: 1px solid #ddd;
            margin-top: auto;
            width: 100%;
        }

        /* Loading Animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .step-content {
            animation: fadeInUp 0.3s ease-out;
        }

        /* Mobile Responsive */
        @media (max-width: 1024px) {
            .main-content {
                grid-template-columns: 1fr;
            }

            .left-nav {
                display: none;
            }

            .form-area {
                padding: 2rem 1.5rem;
                max-height: none;
            }

            .sidebar {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .top-bar-content {
                padding: 0 1rem;
            }

            .logo-text h1 {
                font-size: 1.125rem;
            }

            .logo-text p {
                display: none;
            }

            .form-area {
                padding: 1.5rem 1rem;
            }

            .form-header h2 {
                font-size: 1.5rem;
            }

            .btn-export {
                padding: 8px 16px;
                font-size: 13px;
            }

            #cv-preview {
                transform: scale(0.95);
                transform-origin: top;
            }

            .color-picker-section {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }

            .color-swatches {
                flex-wrap: wrap;
            }

            .category-nav {
                gap: 0.25rem;
            }

            .category-tab {
                padding: 0.5rem 0.75rem;
                font-size: 12px;
            }

            .form-header-with-action {
                flex-direction: column;
                align-items: stretch;
                gap: 1rem;
            }

            .load-sample-btn {
                width: 100%;
                justify-content: center;
            }

            .modal-content {
                width: 95%;
                padding: 1.25rem;
            }

            .modal-header {
                font-size: 14px;
                margin-bottom: 1rem;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 600px) {
            .form-grid {
                grid-template-columns: 1fr;
            }

            .template-cards {
                grid-template-columns: 1fr;
            }
        }

        /* Print Styles */
        @media print {
            @page {
                size: A4;
                margin: 0;
            }

            body {
                background: white;
            }

            .top-bar,
            .sidebar {
                display: none;
            }

            .preview-area {
                box-shadow: none;
                padding: 0;
            }

            #cv-preview {
                box-shadow: none;
                max-width: none;
                width: 210mm;
            }

            .cv-template {
                width: 210mm;
                min-height: 297mm;
                page-break-inside: avoid;
            }
        }

        /* Accessibility */
        .btn-export:focus,
        .btn-add:focus,
        .btn-remove:focus,
        .template-select:focus,
        .font-select:focus {
            outline: 2px solid var(--accent-500);
            outline-offset: 2px;
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Selection */
        ::selection {
            background: var(--accent-500);
            color: white;
        }

        /* Custom scrollbar for webkit browsers */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border-secondary);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--border-tertiary);
        }
