/* ==========================================================================
   QR Code Generator Pro - Modern Stylesheet
   Multiple Theme Variations
   ========================================================================== */

/* Font Import - Outfit from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Font Configuration - Change these variables to customize the font */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 17px;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Modern Theme Colors */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;

    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    --border-color: #e5e7eb;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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);
}

/* Light Theme (default - same as root) */
body[data-theme="light"] {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

/* Dark Theme */
body[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;

    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;

    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;

    --border-color: #374151;
}

/* Blue Theme */
body[data-theme="blue"] {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #1e40af;
    --bg-primary: #ffffff;
    --bg-secondary: #eff6ff;
    --text-primary: #1e3a8a;
    --text-secondary: #3b82f6;
    --border-color: #bfdbfe;
}

/* Purple Theme */
body[data-theme="purple"] {
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary-color: #6366f1;
    --bg-primary: #ffffff;
    --bg-secondary: #faf5ff;
    --text-primary: #581c87;
    --text-secondary: #7c3aed;
    --border-color: #e9d5ff;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Apply Outfit font to all inputs, textareas, selects, and buttons */
input, textarea, select, button {
    font-family: var(--font-family);
    font-size: 17px;
}

textarea {
    font-size: 17px;
}

select {
    font-size: 17px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px !important;
    cursor: pointer;
    font-weight: 500;
}

select:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.02);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

label {
    font-family: var(--font-family);
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6, p, div, span {
    font-family: var(--font-family);
}

/* ==========================================================================
   Theme Selector
   ========================================================================== */

.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: var(--bg-primary);
    padding: 8px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.theme-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.theme-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Subtitle */
.subtitle {
    text-align: center;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    color: Black;
    opacity: 0.8;
    margin-top: 12px;
    margin-bottom: 25px;
    padding: 0 20px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 25px;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-section i {
    font-size: 48px;
    color: var(--primary-color);
}

.header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

/* ==========================================================================
   Mode Switch
   ========================================================================== */

.mode-switch {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    opacity: 1;
    transition: opacity 0.1s ease;
}

/* Prevent layout shift while barcode button loads */
.mode-switch:not(.loaded) {
    min-height: 48px;
}

.mode-btn {
    padding: 12px 30px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mode-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Mode Panels
   ========================================================================== */

.mode-panel {
    display: none;
}

.mode-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   Grid Layout
   ========================================================================== */

/* 2-column layout (legacy - kept for compatibility) */
.grid-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

/* 3-column layout - Modern design */
.grid-layout.grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.left-panel {
    grid-column: 1;
}

.center-panel {
    grid-column: 2;
}

.right-panel {
    grid-column: 3;
}

/* QR Batch mode - Prevent preview from pushing design settings */
#batch-mode .right-panel {
    max-height: 850px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#batch-mode .preview-panel .card:first-child {
    flex-shrink: 0;
}

#batch-mode .qr-display {
    height: 280px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 30px;
}

#batch-mode #batch_qr_preview img,
#batch-mode #batch_qr_preview canvas {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
}

#batch-mode .preview-panel .card:last-child {
    flex-shrink: 0;
}

#batch-mode .batch-list {
    max-height: 200px;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .grid-layout.grid-3-col {
        grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(300px, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .grid-layout.grid-3-col {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .left-panel {
        grid-column: 1;
    }

    .center-panel {
        grid-column: 2;
    }

    .right-panel {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .grid-layout.grid-3-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-panel,
    .center-panel,
    .right-panel {
        grid-column: 1;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Ensure all panels are visible on mobile */
    .design-panel,
    .preview-panel {
        display: flex !important;
        flex-direction: column;
        overflow: visible !important;
    }

    /* Make cards scrollable if needed */
    .card {
        max-height: none !important;
        overflow: visible !important;
    }
}

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

/* Panel Styles */
.left-panel,
.center-panel,
.right-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.design-panel,
.preview-panel {
    position: sticky;
    top: 20px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    color: var(--primary-color);
}

/* ==========================================================================
   QR Code Types
   ========================================================================== */

/* QR Type Sections (Dynamic vs Static) */
.qr-type-section {
    margin-bottom: 20px;
}

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

.qr-type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    font-weight: 600;
}

.qr-type-header i {
    font-size: 18px;
}

.qr-type-header span {
    font-size: 15px;
}

.qr-type-header small {
    margin-left: auto;
    font-weight: 400;
    font-size: 12px;
    opacity: 0.8;
}

.qr-type-header.dynamic {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.qr-type-header.static {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.1));
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.qr-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.type-option {
    position: relative;
    cursor: pointer;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.type-option span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.type-option input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.type-option:hover span {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.field-group {
    margin-bottom: 15px;
}

.field-group.hidden {
    display: none;
}

/* Social Media Templates */
.social-templates {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.templates-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 17px;
}

.templates-label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.social-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.social-btn span {
    font-size: 11px;
}

/* Size Warning */
.size-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--border-radius-sm);
    color: #d97706;
    font-size: 12px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.size-warning i {
    font-size: 14px;
    flex-shrink: 0;
}

.size-warning.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 17px;
}

.field-group label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="number"],
.field-group input[type="datetime-local"],
.field-group textarea,
.field-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 17px;
    font-family: var(--font-family);
    font-weight: 500;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.field-group input:hover,
.field-group textarea:hover,
.field-group select:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.02);
}

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

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.field-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================================================
   Design Options
   ========================================================================== */

.design-option {
    margin-bottom: 20px;
}

.design-option label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 16px;
}

.design-option select,
.design-option .form-control {
    width: 100%;
    padding: 12px 15px;
    padding-right: 35px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 17px;
    font-family: var(--font-family);
    font-weight: 500;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.design-option select:hover,
.design-option .form-control:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.02);
}

.design-option select:focus,
.design-option .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.color-picker-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker-group input[type="color"] {
    width: 60px;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    background: none;
}

.color-picker-group input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 17px;
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--bg-secondary);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* ==========================================================================
   Frame Options
   ========================================================================== */

.frame-options {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
}

.frame-options.hidden {
    display: none;
}

.frame-options .design-option {
    margin-bottom: 15px;
}

.frame-options .design-option:last-child {
    margin-bottom: 0;
}

.frame-options input[type="text"],
.frame-options select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.frame-options input[type="text"]:focus,
.frame-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   Logo Upload
   ========================================================================== */

.logo-upload {
    margin-top: 10px;
}

.logo-preview {
    position: relative;
    margin-top: 15px;
    display: inline-block;
}

.logo-preview.hidden {
    display: none;
}

.logo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
}

.remove-logo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-logo:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

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

/* ==========================================================================
   Preview Panel
   ========================================================================== */

.preview-card {
    min-height: 500px;
    overflow: hidden;
}

.qr-preview {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 400px;
    max-height: 600px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 40px 20px 20px 20px;
    margin-bottom: 20px;
    position: relative;
    max-width: 100%;
    width: 100%;
    overflow: auto;
    box-sizing: border-box;
}

.qr-preview::before {
    display: none;
}

.qr-preview .placeholder {
    text-align: center;
    color: var(--text-light);
}

.qr-preview .placeholder i {
    font-size: 80px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.qr-preview .placeholder p {
    font-size: 16px;
}

.qr-preview img,
#batch_qr_preview img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Canvas constraints - don't override dimensions set by QRCodeStyling */
.qr-preview canvas,
#batch_qr_preview canvas {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    pointer-events: none;
    user-select: none;
}

#batch_qr_preview {
    position: relative;
    padding-top: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#batch_qr_preview::before {
    display: none;
}

.preview-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================================================
   Download Section
   ========================================================================== */

.download-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.download-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-buttons {
    display: grid;
    gap: 12px;
}

/* ==========================================================================
   Batch Mode
   ========================================================================== */

.import-options, .logo-mode-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-mode-section {
    margin-top: 10px;
}

.logo-mode-section.hidden {
    display: none;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(111, 66, 193, 0.1);
    border: 1px solid rgba(111, 66, 193, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

.info-box i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    flex: 1;
}

.import-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.import-option, .radio-option {
    position: relative;
    cursor: pointer;
}

.import-option input[type="radio"], .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.import-option span, .radio-option span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.import-option input[type="radio"]:checked + span, .radio-option input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.import-option:hover span, .radio-option:hover span {
    border-color: var(--primary-color);
}

.import-section {
    margin-top: 20px;
}

.import-section.hidden {
    display: none;
}

.add-item-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-item-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 17px;
    font-family: var(--font-family);
    font-weight: 500;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.add-item-group input:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.02);
}

.add-item-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.add-item-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.help-text {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.batch-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.batch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.batch-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(3px);
}

.batch-item-logo {
    flex-shrink: 0;
}

.batch-logo-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: white;
    padding: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.batch-item-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.batch-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-item-name .name-text {
    flex: 1;
    min-width: 0;
}

.batch-item-name .name-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--card-bg);
}

.batch-item-name .name-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.1);
}

.btn-edit-name {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-edit-name:hover {
    background: rgba(111, 66, 193, 0.1);
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

.batch-item-data {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-action {
    background: transparent;
    border: 1px solid rgba(111, 66, 193, 0.3);
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-action:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.btn-action:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-action.btn-remove {
    border-color: rgba(220, 53, 69, 0.3);
    color: var(--danger-color);
}

.btn-action.btn-remove:hover {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-action.btn-remove-logo {
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.btn-action.btn-remove-logo:hover {
    background: #ffc107;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.batch-item-remove {
    background: var(--danger-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-item-remove:hover {
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
}

/* ==========================================================================
   Progress
   ========================================================================== */

.progress-container {
    padding: 20px;
}

.progress-container.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 50px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    /* Fix horizontal scroll issue */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 20px 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .mode-switch {
        flex-direction: column;
    }

    .theme-selector {
        top: 10px;
        right: 10px;
        flex-direction: column;
    }

    .qr-types {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    /* Fix grid layout for mobile - single column */
    .grid-layout,
    .grid-layout.grid-3-col {
        display: block !important;
        width: 100%;
        overflow-x: hidden;
    }

    /* Mobile Fix: Ensure all panels remain visible and stack properly */
    .left-panel,
    .center-panel,
    .right-panel,
    .design-panel,
    .preview-panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        margin-bottom: 20px;
    }

    .card {
        max-height: none !important;
        overflow: visible !important;
        position: relative !important;
        width: 100%;
    }

    /* Ensure mode panels take full width */
    .mode-panel {
        width: 100%;
        overflow-x: hidden;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ==========================================================================
   Share & Print Section
   ========================================================================== */

.share-section {
    margin-top: 20px;
}

.share-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-social {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.btn-social i {
    font-size: 18px;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-facebook {
    background: #1877F2;
}

.btn-facebook:hover {
    background: #145dbf;
}

.btn-twitter {
    background: #1DA1F2;
}

.btn-twitter:hover {
    background: #0d8cd1;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-telegram {
    background: #0088cc;
}

.btn-telegram:hover {
    background: #006ba3;
}

.btn-email {
    background: #EA4335;
}

.btn-email:hover {
    background: #c23321;
}

@media (max-width: 768px) {
    .share-buttons {
        justify-content: center;
    }

    .btn-social {
        flex: 1;
        min-width: 40px;
    }

    /* FIX: Prevent text overflow on mobile for QR & Barcode generators */
    h1, h2, h3 {
        font-size: 20px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-title {
        font-size: 16px !important;
        line-height: 1.3;
    }

    .form-label, label {
        font-size: 14px !important;
        word-wrap: break-word;
    }

    /* Make mode buttons text smaller */
    .mode-btn {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    .mode-btn i {
        font-size: 14px !important;
    }

    /* Fix form controls on mobile */
    .form-control, select, input, textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
        word-wrap: break-word;
    }

    /* Fix button text overflow */
    .btn, button {
        font-size: 14px !important;
        white-space: normal !important;
        word-wrap: break-word;
        line-height: 1.3;
    }

    /* Fix tabs text */
    .barcode-tab-btn {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    /* Fix info text */
    .info-label, .info-value {
        font-size: 13px !important;
        word-wrap: break-word;
    }

    /* Container padding */
    .container {
        padding: 15px !important;
    }

    .card {
        padding: 15px !important;
    }
}
/* ========================================================================== Pricing Page Styles ========================================================================== */ .pricing-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; } .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; } .plan-card { background: var(--bg-primary); border-radius: var(--border-radius); padding: 40px 30px; box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; border: 3px solid transparent; } .plan-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); } .plan-card.featured { border-color: var(--primary-color); background: linear-gradient(to bottom, var(--bg-primary), rgba(99, 102, 241, 0.05)); } .plan-card.current { border-color: var(--success-color); } .plan-badge { position: absolute; top: -15px; right: 30px; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: var(--font-weight-semibold); } .current-badge { background: var(--success-color); } .plan-header { text-align: center; margin-bottom: 30px; } .plan-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; font-size: 32px; color: white; } .plan-name { font-size: 26px; font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 10px; } .plan-description { color: var(--text-secondary); font-size: 15px; margin-bottom: 20px; } .plan-price { font-size: 48px; font-weight: var(--font-weight-bold); color: var(--primary-color); margin-bottom: 5px; } .plan-price sup { font-size: 24px; } .plan-period { color: var(--text-secondary); font-size: 15px; margin-bottom: 30px; } .plan-features { list-style: none; padding: 0; margin: 0 0 30px 0; } .plan-features li { padding: 12px 0; color: var(--text-primary); font-size: 15px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border-color); } .plan-features li:last-child { border-bottom: none; } .plan-features i { color: var(--success-color); font-size: 18px; } @media (max-width: 768px) { .pricing-container { padding: 20px 15px; } .pricing-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 5px; } .plan-card { padding: 30px 25px; max-width: 95%; margin: 0 auto; } }
.mode-panel { display: none; } .mode-panel.active { display: block; }

/* ==========================================================================
   Universal Header Styles
   ========================================================================== */
.app-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-header .logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.app-header .logo-section i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header .logo-section h1 {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.app-header .plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 20px;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
}

.app-header .upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-header .upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.app-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-header .header-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.app-header .header-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.app-header .header-btn.logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.app-header .auth-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-header .auth-btn.login {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.app-header .auth-btn.login:hover {
    background: var(--bg-tertiary);
}

.app-header .auth-btn.signup {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.app-header .auth-btn.signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.user-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.user-name i {
    color: var(--primary-color);
}

/* Responsive Header */
@media (max-width: 768px) {
    .app-header {
        padding: 10px 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .app-header .header-left {
        flex-wrap: nowrap;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .app-header .logo-section {
        gap: 8px;
    }

    .app-header .logo-section i {
        font-size: 22px;
    }

    .app-header .logo-section h1 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-header .plan-badge {
        font-size: 11px;
        padding: 4px 8px;
        white-space: nowrap;
        display: none; /* Hide on very small screens */
    }

    .app-header .upgrade-btn {
        padding: 6px 10px;
    }

    .app-header .upgrade-btn span {
        display: none;
    }

    .app-header .upgrade-btn i {
        font-size: 14px;
    }

    .app-header .auth-btn {
        font-size: 11px;
        padding: 6px 10px;
        gap: 4px;
        white-space: nowrap;
    }

    .app-header .auth-btn i {
        font-size: 10px;
    }

    .app-header .header-right {
        gap: 6px;
        flex-shrink: 0;
    }

    .theme-selector-header {
        gap: 4px;
    }

    .theme-btn-header {
        width: 26px;
        height: 26px;
    }

    .app-header .header-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .user-name {
        display: none !important;
    }

    /* Hide signup/logout buttons on mobile (keep login, support and settings visible) */
    .app-header .auth-btn.signup {
        display: none !important;
    }

    .app-header .header-btn.logout {
        display: none !important;
    }
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

.qr-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.qr-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.qr-toast-success {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-primary) 100%);
}

.qr-toast-success i {
    color: var(--success-color);
    font-size: 20px;
}

.qr-toast-error {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-primary) 100%);
}

.qr-toast-error i {
    color: var(--danger-color);
    font-size: 20px;
}

.qr-toast span {
    flex: 1;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .qr-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
    }
}

/* Blog Section on Homepage */
.blog-section {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.2);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-meta i {
    color: var(--primary-color);
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    font-size: 14px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 12px;
}

.blog-cta {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .blog-card-image {
        height: 150px;
    }

    .blog-card-content {
        padding: 15px;
    }

    .blog-card-title {
        font-size: 16px;
    }

    .blog-card-excerpt {
        font-size: 13px;
    }
}

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

/* ==========================================================================
   Eye Design Section - Outer & Inner Eyes Customization
   ========================================================================== */

.eye-design-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.eye-design-section > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 15px;
}

.eye-design-group {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

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

.eye-group-label {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eye-shapes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.eye-shape-btn {
    width: 100%;
    aspect-ratio: 1;
    padding: 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-shape-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.eye-shape-btn.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.eye-shape-preview {
    width: 32px;
    height: 32px;
}

.eye-shape-preview.outer {
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 3;
}

.eye-shape-preview.inner {
    fill: var(--text-primary);
    stroke: none;
}

/* Custom Eye Colors Toggle */
.custom-eye-colors-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-eye-colors-toggle:hover {
    background: var(--border-color);
}

.custom-eye-colors-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.custom-eye-colors-toggle span {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.eye-colors-section {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.eye-colors-section.visible {
    display: block;
}

.eye-color-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.eye-color-row:last-child {
    margin-bottom: 0;
}

.eye-color-label {
    flex: 0 0 100px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.eye-color-picker {
    flex: 1;
    display: flex;
    gap: 8px;
}

.eye-color-picker input[type="color"] {
    width: 45px;
    height: 38px;
    padding: 2px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    background: var(--bg-primary);
}

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

.eye-color-picker input[type="color"]::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

.eye-color-picker input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: monospace;
    text-transform: uppercase;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.eye-color-picker input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive adjustments for eye design */
@media (max-width: 768px) {
    .eye-shapes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .eye-shape-btn {
        padding: 6px;
    }

    .eye-shape-preview {
        width: 26px;
        height: 26px;
    }

    .eye-color-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .eye-color-label {
        flex: none;
    }

    .eye-color-picker {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .eye-shapes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .eye-shape-preview {
        width: 22px;
        height: 22px;
    }
}
