/* ═══════════════════════════════════════════════════════════════
   Easy Order Label — Fresh Light Theme
   Warm, feel-good colors with soft gradients
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-soft: #eef2ff;
    --accent-teal: #14b8a6;
    --accent-sky: #38bdf8;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-navbar: rgba(255, 255, 255, 0.88);
    --bg-hero: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 40%, #fce7f3 70%, #fff7ed 100%);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #c7d2fe;
    --gradient-brand: linear-gradient(135deg, #6366f1, #a78bfa, #c084fc);
    --gradient-warm: linear-gradient(135deg, #f97316, #f43f5e);
    --gradient-cool: linear-gradient(135deg, #06b6d4, #3b82f6);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 40px rgba(99,102,241,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 30px rgba(99,102,241,0.08);
    --radius: 18px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: #c7d2fe; color: #312e81; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

/* ─── Navbar ────────────────────────────────────────────────── */
#main-navbar {
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
    z-index: 1050;
    box-shadow: var(--shadow-sm);
}
.brand-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--gradient-brand); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.25rem; color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.brand-text { font-weight: 800; font-size: 1.15rem; color: var(--text-primary); }
.navbar-nav .nav-link {
    color: var(--text-secondary); font-weight: 600; font-size: 0.9rem;
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover {
    color: var(--primary); background: var(--primary-soft);
}
.navbar-toggler { border: 1px solid var(--border-color); }

/* ─── Hero Section ──────────────────────────────────────────── */
.hero-section {
    background: var(--bg-hero);
    padding: 4.5rem 0 4rem;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: white; border: 1px solid var(--border-color);
    color: var(--primary); padding: 0.45rem 1.1rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 1.25rem; color: #1e1b4b;
}
.gradient-text {
    background: var(--gradient-brand); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 500px; line-height: 1.8;
}
.hero-stats { display: flex; gap: 2.5rem; }
.stat-item .stat-number { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.stat-item .stat-label {
    font-size: 0.78rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600;
}

/* Background shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; }
.shape-1 { width: 500px; height: 500px; background: rgba(99,102,241,0.06); top: -200px; right: -100px; }
.shape-2 { width: 350px; height: 350px; background: rgba(244,63,94,0.05); bottom: -120px; left: -80px; }
.shape-3 { width: 200px; height: 200px; background: rgba(14,184,166,0.06); top: 40%; left: 25%; }

/* ─── Upload Card ───────────────────────────────────────────── */
.upload-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative; z-index: 2;
}
.upload-card-header {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem;
    color: var(--text-primary);
}
.upload-card-header i { font-size: 1.5rem; color: var(--primary); }

/* Drop Zone */
.drop-zone {
    border: 2.5px dashed #c7d2fe;
    border-radius: var(--radius-sm);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f8f9ff;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: #eef2ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99,102,241,0.12);
}
.drop-icon { font-size: 3.2rem; color: var(--primary); margin-bottom: 0.75rem; }
.drop-text { font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.drop-hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.25rem; }
.drop-limit { color: var(--text-muted); font-size: 0.75rem; }

/* File Info */
.file-info {
    display: flex; align-items: center; gap: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    animation: slideUp 0.3s ease;
}
.file-info-icon { font-size: 2.2rem; color: #ef4444; }
.file-info-details { flex: 1; }
.file-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); word-break: break-all; }
.file-size { font-size: 0.8rem; color: var(--text-muted); }

/* Process Button */
.btn-process {
    width: 100%;
    padding: 0.9rem;
    background: var(--gradient-brand);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.btn-process:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.4);
    color: white;
}
.btn-process:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Progress */
.progress-section { margin-top: 1.25rem; animation: slideUp 0.3s ease; }
.progress-label { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.custom-progress { height: 14px; border-radius: 10px; background: #e0e7ff; overflow: hidden; }
.custom-progress .progress-bar {
    background: var(--gradient-brand);
    font-size: 0.65rem;
    font-weight: 700;
    transition: width 0.4s ease;
    border-radius: 10px;
    color: white;
}
.progress-detail { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ─── Features Section ──────────────────────────────────────── */
.features-section { padding: 5rem 0; background: white; }
.section-title { font-size: 2rem; font-weight: 800; color: #1e1b4b; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; }

.feature-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 62px; height: 62px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: white; margin: 0 auto 1.25rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.bg-gradient-1 { background: linear-gradient(135deg, #6366f1, #a78bfa); }
.bg-gradient-2 { background: linear-gradient(135deg, #06b6d4, #38bdf8); }
.bg-gradient-3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.bg-gradient-4 { background: linear-gradient(135deg, #10b981, #34d399); }
.bg-gradient-5 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.bg-gradient-6 { background: linear-gradient(135deg, #14b8a6, #2dd4bf); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ─── How It Works ──────────────────────────────────────────── */
.how-it-works-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}
.step-card {
    background: white; border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center;
    position: relative; height: 100%; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.step-number {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gradient-brand); color: white;
    font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.step-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* ─── Platforms Section ─────────────────────────────────────── */
.platforms-section { padding: 3rem 0 5rem; background: white; }
.platform-badge {
    background: var(--primary-soft); border: 1px solid #c7d2fe;
    color: var(--primary); padding: 0.5rem 1.25rem;
    border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    transition: var(--transition);
}
.platform-badge:hover {
    background: var(--primary); color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}

/* ─── Results Page ──────────────────────────────────────────── */
.results-section { padding: 2rem 0 4rem; }
.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.results-title { font-size: 1.8rem; font-weight: 800; color: #1e1b4b; margin-bottom: 0.25rem; }
.results-subtitle { color: var(--text-secondary); font-size: 0.95rem; }

/* Download Buttons */
.btn-download-pdf {
    background: linear-gradient(135deg, #ef4444, #f87171); color: white;
    border: none; padding: 0.65rem 1.3rem; border-radius: var(--radius-sm);
    font-weight: 700; transition: var(--transition);
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.btn-download-pdf:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239,68,68,0.35); color: white; }

.btn-download-excel {
    background: linear-gradient(135deg, #10b981, #34d399); color: white;
    border: none; padding: 0.65rem 1.3rem; border-radius: var(--radius-sm);
    font-weight: 700; transition: var(--transition);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.btn-download-excel:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.35); color: white; }
.btn-download-csv {
    background: linear-gradient(135deg, #3b82f6, #60a5fa); color: white;
    border: none; padding: 0.65rem 1.3rem; border-radius: var(--radius-sm);
    font-weight: 700; transition: var(--transition);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.btn-download-csv:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.35); color: white; }
.btn-upload-new {
    background: var(--primary-soft); color: var(--primary);
    border: 1.5px solid #c7d2fe; padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm); font-weight: 700; transition: var(--transition);
}
.btn-upload-new:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* Stats Cards */
.stat-card {
    background: white; border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 1.4rem; text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.stat-card-icon {
    width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 0.85rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.bg-stat-1 { background: linear-gradient(135deg, #6366f1, #a78bfa); }
.bg-stat-2 { background: linear-gradient(135deg, #10b981, #34d399); }
.bg-stat-3 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.bg-stat-4 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bg-stat-5 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.bg-stat-6 { background: linear-gradient(135deg, #14b8a6, #2dd4bf); }
.stat-card-value { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); }
.stat-card-label {
    font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.6px; font-weight: 700;
}

/* Report Tabs Card */
.report-tabs-card {
    background: white; border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-md);
}
.table-search-bar { padding: 1.25rem 1.5rem 0.75rem; }
.table-search-bar .input-group-text {
    background: #f1f5f9; border: 1.5px solid var(--border-color);
    color: var(--text-muted); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.table-search-bar .form-control {
    background: #f8fafc; border: 1.5px solid var(--border-color);
    color: var(--text-primary); border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 500;
}
.table-search-bar .form-control:focus {
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    border-color: var(--primary-light);
    background: white;
}
.table-search-bar .form-control::placeholder { color: var(--text-muted); }

.report-tabs {
    border-bottom: 2px solid #e2e8f0; padding: 0 1.25rem;
    background: #fafbff;
}
.report-tabs .nav-link {
    color: var(--text-muted); border: none; font-weight: 700; font-size: 0.88rem;
    padding: 0.85rem 1.1rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
    margin-bottom: -2px;
}
.report-tabs .nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.report-tabs .nav-link.active {
    color: var(--primary);
    background: white;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 -2px 8px rgba(99,102,241,0.06);
}

/* Tables */
.tab-content { padding: 0.5rem 1.25rem 1.5rem; }
.table {
    color: var(--text-primary); margin: 0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f8f9ff;
    --bs-table-hover-bg: #eef2ff;
}
.table thead th {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4338ca;
    font-weight: 800; font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.7px; padding: 1rem 1rem;
    border-bottom: 2px solid #c7d2fe;
    white-space: nowrap;
    position: sticky; top: 0;
}
.table tbody td {
    padding: 0.8rem 1rem; font-size: 0.88rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-weight: 500;
}
.table-striped > tbody > tr:nth-of-type(odd) > td { background: #fafaff; }
.table-hover > tbody > tr:hover > td { background: #eef2ff; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: white; border-top: 1px solid var(--border-color);
    padding: 1.5rem 0; font-size: 0.85rem; color: var(--text-secondary);
}
.text-muted-custom { color: var(--text-muted); }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.feature-card, .step-card, .stat-card { animation: slideUp 0.5s ease both; }
.feature-card:nth-child(2) { animation-delay: 0.07s; }
.feature-card:nth-child(3) { animation-delay: 0.14s; }
.feature-card:nth-child(4) { animation-delay: 0.21s; }
.feature-card:nth-child(5) { animation-delay: 0.28s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-section { padding: 3rem 0; min-height: auto; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
}
@media (max-width: 767px) {
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .stat-item .stat-number { font-size: 1.4rem; }
    .results-title { font-size: 1.4rem; }
    .report-tabs .nav-link { font-size: 0.78rem; padding: 0.6rem 0.7rem; }
    .tab-content { padding: 0.5rem 0.75rem 1rem; overflow-x: auto; }
    .stat-card { padding: 1rem; }
    .stat-card-value { font-size: 1.3rem; }
}
