/* ========================================
   Nutrição e Informação - Production CSS
   nutricaoeinformacao.com.br
   ======================================== */

/* CSS Variables */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --primary-light: #8b5cf6;
    --secondary: #f093fb;
    --accent: #4facfe;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition: 0.2s ease;
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --max-width: 1200px;
    --header-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Language Bar
   ======================================== */

.lang-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.lang-bar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.2);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(79, 172, 254, 0.3);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(240, 147, 251, 0.3);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Input Section
   ======================================== */

.input-section {
    background: var(--surface);
    margin: -40px 24px 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
}

.input-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}

.input-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.input-toolbar label {
    font-weight: 600;
    color: var(--text);
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-text:hover {
    background: rgba(102, 126, 234, 0.1);
}

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

.btn-text.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.divider {
    color: var(--border);
}

.csv-textarea {
    width: 100%;
    min-height: 220px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text);
}

.csv-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.csv-textarea::placeholder {
    color: var(--text-muted);
}

.input-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.link-help {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link-help:hover {
    text-decoration: underline;
}

.input-actions {
    margin-top: 24px;
    text-align: center;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

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

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* ========================================
   Tabs
   ======================================== */

.formats-section {
    background: var(--bg);
}

.tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tab-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* ========================================
   Labels Container & Empty State
   ======================================== */

.labels-container {
    min-height: 300px;
}

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

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 8px;
}

/* ========================================
   Label Sections
   ======================================== */

.label-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Product Info Card */
.product-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.product-info h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 12px;
}

.info-block {
    color: var(--text-secondary);
    line-height: 1.6;
}

.claims {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.claim {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========================================
   Nutrition Label Styles (ANVISA)
   ======================================== */

.nutrition-label {
    border: 2px solid #1a1a1a;
    padding: 16px;
    background: white;
    max-width: 360px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
}

.label-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 8px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.serving-info {
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #1a1a1a;
}

.serving-info-inline {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ccc;
    color: #1a1a1a;
}

.serving-info-compact {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.nutrition-table th,
.nutrition-table td {
    padding: 5px 6px;
    text-align: right;
    border-bottom: 1px solid #ddd;
    color: #1a1a1a;
}

.nutrition-table th:first-child,
.nutrition-table td:first-child {
    text-align: left;
}

.nutrition-table th {
    font-weight: 700;
    border-bottom: 2px solid #1a1a1a;
    font-size: 0.8rem;
}

.nutrition-table .vd {
    font-weight: 700;
}

.footnote {
    font-size: 0.75rem;
    margin-top: 8px;
    line-height: 1.3;
    color: #333;
}

/* Horizontal Layout */
.horizontal .horizontal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.horizontal .label-title {
    border: none;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 1rem;
}

/* Quebrado (Split) Layout */
.quebrado .split-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quebrado .nutrition-table {
    font-size: 0.78rem;
}

.quebrado .nutrition-table th,
.quebrado .nutrition-table td {
    padding: 4px;
}

/* Linear Layout */
.linear {
    max-width: 100%;
}

.linear-text {
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    color: #1a1a1a;
}

/* FOP (Front of Package) */
.fop-label {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.fop-warning {
    background: white;
    border: 4px solid #000;
    border-radius: 12px;
    text-align: center;
    min-width: 160px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

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

.alto-em {
    background: #000;
    color: #fff;
    font-weight: 900;
    font-size: 0.9rem;
    padding: 8px 20px;
    transform: rotate(-3deg) scale(1.1);
    margin: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.warning-text {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.3;
    padding: 12px 20px 20px;
    letter-spacing: 0.5px;
    color: #000;
}

.fop-none {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: var(--radius-lg);
    color: #065f46;
    font-weight: 600;
    font-size: 1.1rem;
}

.fop-none .check {
    font-size: 2rem;
}

.print-actions {
    text-align: center;
    margin-top: 40px;
}

/* Error Message */
.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 20px 24px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
    border: 1px solid #fecaca;
}

/* ========================================
   How To Section
   ======================================== */

.how-to-section {
    background: var(--surface);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
    background: var(--bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-item summary:hover {
    background: var(--bg);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Legal Section
   ======================================== */

.legal-section {
    background: var(--surface);
}

.legal-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
}

.legal-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.legal-card p {
    opacity: 0.8;
    margin-bottom: 24px;
}

.legal-list {
    list-style: none;
    text-align: left;
}

.legal-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-list li:last-child {
    border-bottom: none;
}

.legal-list strong {
    color: #60a5fa;
}

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

.footer {
    background: #0f172a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    font-size: 2rem;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-text {
    opacity: 0.7;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copy {
    opacity: 0.5;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    :root {
        --max-width: 100%;
    }
    
    body {
        padding: 0;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .input-section {
        margin: -30px 16px 0;
        padding: 40px 0;
    }
    
    .input-card {
        padding: 16px;
    }
    
    .input-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toolbar-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        justify-content: flex-start;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .quebrado .split-tables {
        grid-template-columns: 1fr;
    }
    
    .horizontal .horizontal-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .fop-warning {
        min-width: 140px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-card {
        padding: 30px 20px;
    }
    
    .section-header-with-export {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ========================================
   Export Button & Section Header
   ======================================== */

.section-header-with-export {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header-with-export .section-title {
    margin-bottom: 0;
}

.export-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

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

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

.btn-export-svg {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-export-svg:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

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

.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.error {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

/* ========================================
   Export Styling Adjustments
   ======================================== */

.nutrition-label.exporting,
.fop-label.exporting,
.fop-none.exporting {
    /* Ensure clean background for export */
    background: white !important;
    box-shadow: none !important;
}

/* Label content wrapper */
.label-content {
    display: flex;
    justify-content: center;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .label-section {
        padding: 20px;
    }
    
    .nutrition-label {
        padding: 12px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    body {
        background: white;
    }
    
    .lang-bar,
    .hero,
    .input-section,
    .tabs,
    .how-to-section,
    .faq-section,
    .legal-section,
    .footer,
    .print-actions {
        display: none !important;
    }
    
    .section-header,
    .empty-state {
        display: none !important;
    }
    
    .formats-section {
        padding: 0;
    }
    
    .labels-container {
        min-height: auto;
    }
    
    .label-section {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .section-title {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .nutrition-label {
        max-width: 100%;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

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