/* ============================================
   QR Code Scanner & Generator - Main Styles
   Modern Design System
   ============================================ */

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    /* Colors - Light Professional Theme */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --white: #ffffff;
    --black: #000000;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing (8px grid system) */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
    
    /* Layout */
    --max-width: 1200px;
    --container-padding: var(--spacing-md);
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-toast: 1060;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--gray-800);
    background-color: var(--white);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-400);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-md) var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background-color: var(--gray-50);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transition: right var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0;
    flex-shrink: 0;
}

.mobile-logo img {
    height: 50px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.mobile-menu-close:hover {
    color: var(--gray-900);
}

.mobile-menu-list li {
    margin: 0;
    list-style: none;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-list a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu-list a:hover,
.mobile-menu-list a.active {
    color: var(--primary);
    background-color: var(--gray-50);
    padding-left: calc(var(--spacing-lg) + var(--spacing-sm));
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) var(--container-padding);
    text-align: center;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
    margin-bottom: var(--spacing-md);
    color: var(--white);
    font-weight: var(--font-weight-bold);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Main Container
   ============================================ */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--container-padding);
    display: grid;
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

/* ============================================
   Section Card
   ============================================ */
.section-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-2xl);
    transition: box-shadow var(--transition-normal);
}

.section-card:hover {
    box-shadow: var(--shadow-lg);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xl);
    color: var(--gray-900);
}

.section-title i {
    color: var(--primary);
    font-size: var(--font-size-xl);
}

/* ============================================
   Scanner Section
   ============================================ */
.scanner-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    background: var(--gray-50);
}

.scanner-upload-area:hover {
    border-color: var(--primary);
    background: var(--white);
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.upload-icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: var(--spacing-sm);
}

.upload-text {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.camera-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.camera-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.scanned-image-container {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.scanned-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.scanner-result {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.scanner-result textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    resize: vertical;
    margin-bottom: var(--spacing-md);
}

.scanner-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.camera-scanner {
    margin-top: var(--spacing-lg);
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.camera-scanner .camera-video-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: visible;
}

.camera-scanner video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--gray-900);
    display: block;
    position: relative;
}

.camera-scanner .camera-video-wrapper #close-camera-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 140px;
    pointer-events: auto;
    margin: 0;
    display: inline-flex;
}

.loader {
    text-align: center;
    padding: var(--spacing-2xl);
}

.loader img {
    width: 64px;
    height: 64px;
}

/* ============================================
   Generator Section
   ============================================ */
.generator-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

.form-group label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-group label i {
    color: var(--primary);
    font-size: var(--font-size-sm);
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background: var(--white);
    box-sizing: border-box;
}

.form-control:not(.modern-select) {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure all input types have same width and style */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background: var(--white);
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Template Forms */
.template-forms {
    position: relative;
}

.template-form {
    display: none;
    flex-direction: column;
    gap: var(--spacing-md);
    animation: fadeIn 0.3s ease-out;
}

.template-form.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input with AI */
.input-with-ai {
    position: relative;
    width: 100%;
}

/* AI Badge */
.ai-badge {
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--info);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    display: inline-block;
    position: relative;
    cursor: help;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* AI Options Panel */
.ai-options-panel {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    z-index: 1000;
    margin-top: var(--spacing-xs);
    animation: slideDown 0.3s ease-out;
}

.ai-options-panel:hover {
    display: block !important;
}

/* AI Smart Features Panel */
.ai-features-panel {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.ai-features-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.ai-features-header i {
    font-size: var(--font-size-xl);
}

.ai-features-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.ai-feature-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.ai-feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.ai-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.ai-feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.ai-feature-title {
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    font-size: var(--font-size-base);
}

.ai-feature-desc {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
}

.ai-feature-btn {
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.ai-feature-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-actions-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--gray-200);
}

.ai-action-btn {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.ai-action-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.ai-action-btn:active {
    transform: translateX(2px);
}

.ai-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ai-badge.ai-url {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.ai-badge.ai-email {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ai-badge.ai-phone {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.ai-badge.ai-text {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.ai-suggestion {
    margin-left: var(--spacing-xs);
    opacity: 0.9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.ai-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    white-space: pre-line;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    text-align: left;
}

/* Customization Options */
.customization-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--gray-200);
}

.option-group {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.option-group:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.option-group.expanded {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.option-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--gray-50);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    transition: all var(--transition-fast);
    user-select: none;
    position: relative;
}

.option-header:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.option-group.expanded .option-header {
    background: var(--primary);
    color: var(--white);
}

.option-header i.fa-chevron-down {
    transition: all var(--transition-normal);
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

.option-header:hover i.fa-chevron-down {
    color: var(--primary);
    transform: scale(1.1);
}

.option-group.expanded .option-header i.fa-chevron-down {
    transform: rotate(180deg) scale(1.1);
    color: var(--white);
}

.option-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    padding: 0 var(--spacing-lg);
}

.option-group.expanded .option-content {
    max-height: 1000px;
    padding: var(--spacing-lg);
}

/* Color Picker - Inline Layout */
.color-picker-inline {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    flex-wrap: wrap;
}

.color-picker-group {
    flex: 1;
    min-width: 150px;
}

.color-picker-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.color-picker-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.color-input {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
                0 2px 4px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.color-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.color-input:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 
                0 4px 6px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

.color-input:active {
    transform: translateY(0);
}

.color-text {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: var(--font-size-sm);
    text-align: center;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
}

.color-text:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Style Selector - Inline Layout */
.style-selector-inline {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    flex-wrap: wrap;
}

.style-selector-group {
    flex: 1;
    min-width: 180px;
}

.style-selector-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

/* Modern 3D Select Wrapper */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.modern-select {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 1;
}

.modern-select:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12),
                0 3px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1),
                0 6px 10px rgba(0, 0, 0, 0.12),
                0 3px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.modern-select:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
                0 1px 2px rgba(0, 0, 0, 0.06),
                inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.select-arrow {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    z-index: 2;
}

.select-wrapper:hover .select-arrow {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.modern-select:focus + .select-arrow {
    color: var(--primary);
}

.modern-select:focus + .select-arrow,
.modern-select:active + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.section-card {
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Logo Options */
.logo-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-md);
}

.logo-option {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-fast);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    aspect-ratio: 1;
}

.logo-option:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.logo-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.logo-option input[type="radio"]:checked + *,
.logo-option:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.logo-option img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--gray-600);
    width: 100%;
    min-height: 60px;
    justify-content: center;
}

.logo-preview i {
    font-size: var(--font-size-lg);
    display: block;
}

.logo-preview span {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    display: block;
}

.upload-logo {
    display: flex !important;
    visibility: visible !important;
}

.custom-logo-preview {
    margin-top: var(--spacing-md);
    text-align: center;
}

@media (max-width: 768px) {
    .custom-logo-preview {
        display: none !important;
    }
}

.custom-logo-wrapper {
    position: relative;
    display: inline-block;
}

.custom-logo-preview img {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
}

.remove-logo-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--error);
    color: var(--white);
    border: 2px solid var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.remove-logo-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.remove-logo-btn:active {
    transform: scale(0.95);
}

/* Size Slider */
.size-slider-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.size-display {
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-700);
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.size-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* QR Preview Section */
.qr-preview-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--gray-200);
}

.qr-preview-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
}

.qr-code-display {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.qr-code-display canvas,
.qr-code-display svg {
    max-width: 100%;
    height: auto;
}

.qr-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.download-section,
.share-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

.share-section {
    align-items: center;
}

.download-section h3,
.share-section h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.share-section {
    display: flex !important;
    width: 100%;
    align-items: center;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Buttons */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-download {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-download:hover {
    background: var(--gray-200);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-reset {
    background: var(--gray-200);
    color: var(--gray-700);
    margin-top: var(--spacing-lg);
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    justify-content: center;
    height: auto;
    min-height: auto;
}

.btn-reset:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--white);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.share-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.email { background: var(--gray-600); }
.share-btn.copy { background: var(--primary); }

/* ============================================
   Toast Notification
   ============================================ */
#toast-container {
    position: fixed;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.toast {
    background: var(--white);
    color: var(--gray-800);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-3xl) var(--container-padding) var(--spacing-xl);
    margin-top: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-800);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    color: var(--gray-500);
}

.footer-bottom-content p {
    margin: 0;
}

.footer-bottom-content a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-bottom-content a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    font-size: var(--font-size-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links span {
    color: var(--gray-600);
}

.footer-section ul li i {
    color: var(--primary);
    margin-right: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .qr-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--spacing-md);
    }
    
    .hero-section {
        padding: var(--spacing-2xl) var(--container-padding);
    }
    
    .section-card {
        padding: var(--spacing-lg);
    }
    
    .scanner-upload-area {
        padding: var(--spacing-lg);
    }
    
    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .logo-option {
        min-height: 70px;
        padding: var(--spacing-sm);
        width: 100%;
        display: flex !important;
        visibility: visible !important;
        aspect-ratio: 1;
    }
    
    .logo-option img {
        max-height: 50px;
        width: auto;
        height: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: contain;
    }
    
    .logo-preview {
        min-height: 50px;
        display: flex !important;
        visibility: visible !important;
        width: 100%;
        gap: var(--spacing-xs);
    }
    
    .logo-preview i {
        font-size: var(--font-size-base);
        display: block !important;
        visibility: visible !important;
    }
    
    .logo-preview span {
        font-size: var(--font-size-xs);
        display: block !important;
        visibility: visible !important;
    }
    
    .upload-logo {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        min-height: 50px;
    }
    
    .custom-logo-preview {
        display: none !important;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .share-buttons {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .share-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: var(--font-size-base);
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .qr-actions {
        gap: var(--spacing-lg);
    }
    
    .share-section {
        width: 100%;
    }
    
    #toast-container {
        right: var(--spacing-md);
        left: var(--spacing-md);
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    /* Inline layouts stack on mobile */
    .color-picker-inline,
    .style-selector-inline {
        flex-direction: column;
    }
    
    .color-picker-group,
    .style-selector-group {
        width: 100%;
        min-width: auto;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
    
    .share-buttons {
        gap: var(--spacing-xs);
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: var(--font-size-sm);
        display: flex !important;
    }
    
    .share-section {
        display: flex !important;
        width: 100%;
    }
    
    /* Logo Grid Mobile - Extra Small */
    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xs);
    }
    
    .logo-option {
        min-height: 60px;
        padding: var(--spacing-xs);
        display: flex !important;
        visibility: visible !important;
        width: 100%;
        aspect-ratio: 1;
    }
    
    .logo-option img {
        max-height: 40px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto;
        height: auto;
    }
    
    .logo-preview {
        min-height: 40px;
        display: flex !important;
        visibility: visible !important;
        width: 100%;
        gap: 2px;
    }
    
    .logo-preview i {
        font-size: var(--font-size-sm);
        display: block !important;
        visibility: visible !important;
    }
    
    .logo-preview span {
        font-size: 10px;
        display: block !important;
        visibility: visible !important;
    }
    
    .upload-logo {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 40px;
        width: 100%;
    }
    
    .custom-logo-preview {
        display: none !important;
    }
    
    .nav-logo img {
        height: 50px;
    }
}

/* ============================================
   Decorative QR Form Styles
   ============================================ */
.decorative-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gray-200);
}

.section-subtitle i {
    color: var(--primary);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--white);
}

.radio-label:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* Image Preview Container */
.image-preview-container {
    margin-top: var(--spacing-md);
    position: relative;
    display: inline-block;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    background: var(--white);
}

.image-preview-container img {
    max-width: 200px;
    max-height: 200px;
    display: block;
    border-radius: var(--radius-sm);
}

.remove-image-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--error);
    color: var(--white);
    border: 2px solid var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.remove-image-btn:hover {
    background: var(--error);
    transform: scale(1.1);
}

/* Slider Group */
.slider-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.slider-value {
    min-width: 60px;
    text-align: right;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

/* Custom Decorative Controls */
.custom-decorative-controls {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

/* Color Picker Wrapper (enhanced for decorative forms) */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

.color-input {
    width: 60px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.color-input:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.color-text {
    flex: 1;
    padding: var(--spacing-sm);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    background: var(--white);
    transition: all var(--transition-fast);
}

.color-text:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive adjustments for decorative forms */
@media (max-width: 768px) {
    .decorative-section {
        padding: var(--spacing-md);
    }
    
    .radio-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .radio-label {
        width: 100%;
    }
    
    .slider-group {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .slider-value {
        text-align: left;
    }
    
    .image-preview-container img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.hide {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

