/* Pastel business visual refresh */

:root {
    --primary-50: #e6ecf8;
    --primary-100: #d4def4;
    --primary-200: #b6c7ec;
    --primary-300: #8fa9e1;
    --primary-400: #6a89d4;
    --primary-500: #2d56b3;
    --primary-600: #234799;
    --primary-700: #1c3a80;
    --ink-900: #0f172a;
    --ink-800: #1f2937;
    --ink-700: #334155;
    --ink-500: #475569;
    --ink-300: #94a3b8;
    --surface-50: #f7f9fc;
    --surface-100: #eef2f7;
    --surface-200: #e2e8f0;
    --surface-900: #0b1220;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-soft: 0 8px 20px rgba(60, 64, 67, 0.12);
    --shadow-strong: 0 16px 40px rgba(60, 64, 67, 0.18);
    --font-body: 'Nunito', 'Roboto', 'Inter', 'Segoe UI', -apple-system, system-ui, sans-serif;
    --font-size: 0.95rem;

    /* CookieConsent variables */
    --cc-font-family: var(--font-body);
    --cc-btn-primary-bg: var(--primary-500);
    --cc-btn-primary-border: var(--primary-500);
    --cc-btn-primary-hover-bg: var(--primary-600);
    --cc-btn-primary-hover-border: var(--primary-600);
    --cc-btn-secondary-bg: var(--surface-200);
    --cc-btn-secondary-hover-bg: var(--surface-100);
    --cc-btn-secondary-color: var(--ink-800);
    --cc-modal-border-radius: var(--radius-md);
    --cc-btn-border-radius: var(--radius-sm);
}

/* Utilities */
.bg-surface-50 { background-color: var(--surface-50) !important; }
.bg-surface-100 { background-color: var(--surface-100) !important; }
.bg-surface-200 { background-color: var(--surface-200) !important; }
.bg-primary-soft { background-color: var(--primary-50) !important; }

/* Custom size utilities to replace inline styles */
.export-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.export-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

.navbar-landing {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Landing Page Styles */
.hero-main {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 100%);
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.glow-blob-primary { background: radial-gradient(circle, var(--primary-300) 0%, transparent 70%); filter: blur(60px); width: 400px; height: 400px; }
.glow-blob-warning { background: radial-gradient(circle, #f0c94c 0%, transparent 70%); filter: blur(60px); width: 300px; height: 300px; }
.glow-blob-purple  { background: radial-gradient(circle, #8b5cf6 0%, transparent 60%); filter: blur(80px); }
.glow-blob-success { background: radial-gradient(circle, #10b981 0%, transparent 70%); filter: blur(50px); }
.glow-blob-danger  { background: radial-gradient(circle, #ef4444 0%, transparent 70%); filter: blur(45px); }
.glow-blob-white   { background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%); filter: blur(100px); }

.glow-blob-xl { width: 500px; height: 500px; }
.glow-blob-lg { width: 250px; height: 250px; }
.glow-blob-md { width: 200px; height: 200px; }
.glow-blob-sm { width: 180px; height: 180px; }

.z-index-2 { z-index: 2; }
.z-index-10 { z-index: 10; }

.py-6 { padding: 4rem 0 !important; }
.py-100 { padding: 100px 0 !important; }

html, body {
    height: 100%;
    font-size: 0.95em;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--font-size);
    color: #1f1f1f;
    background: #f5f5f5;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', 'Roboto', 'Inter', 'Segoe UI', sans-serif;
    font-weight: 700;
}

/* Navigation */
.app-navbar {
    background: var(--primary-500);
    border-bottom: 1px solid var(--primary-600);
    box-shadow: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.app-navbar .navbar-brand {
    color: #f8fafc;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
}

.app-navbar .navbar-toggler {
    border: none;
    color: #f8fafc;
}

.app-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.app-navbar .nav-link {
    color: #f8fafc;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.app-navbar .navbar-nav {
    gap: 0.8rem;
}

.app-navbar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.app-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.app-navbar .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 0.35rem;
}

.app-navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
}

.app-navbar .dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.theme-toggle,
.language-toggle {
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #ffffff;
}

.theme-toggle:hover,
.language-toggle:hover,
.theme-toggle.show,
.language-toggle.show {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
}

.theme-toggle:focus,
.language-toggle:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) !important;
}

.navbar-landing .language-toggle {
    border-color: var(--primary-200);
    color: var(--primary-500);
}

.navbar-landing .language-toggle:hover,
.navbar-landing .language-toggle.show {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-600);
}

/* Footer language switcher */
.footer-language-switcher .language-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

.footer-language-switcher .language-toggle:hover,
.footer-language-switcher .language-toggle.show {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-language-switcher .dropdown-menu {
    background-color: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-language-switcher .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer-language-switcher .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.avatar-ring {
    border-color: var(--primary-100) !important;
    box-shadow: 0 4px 10px rgba(79, 142, 250, 0.2);
}

.app-navbar .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
    background: transparent;
}

.app-navbar .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: none;
}

.app-navbar .btn-link.nav-link {
    color: #f8fafc;
}

.app-navbar .btn-link.nav-link:hover {
    color: #ffffff;
}

.navbar .dropdown-toggle::after {
    display: none;
}

/* Cards */
.card {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    box-shadow: none;
    background: #ffffff;
    backdrop-filter: none;
}

.card-header {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    color: #1f1f1f;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.card-footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 0.85rem 1.25rem;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.card-body {
    padding: 1.25rem 1.35rem;
}

.card.border-primary { border-color: var(--primary-200) !important; }
.card.border-success { border-color: #5cbf9b !important; }
.card.border-warning { border-color: #f0c94c !important; }
.card.border-danger { border-color: #e88ba4 !important; }
.card.border-info { border-color: #7ad3ef !important; }

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    letter-spacing: 0.01em;
}

.btn-sm {
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
}

.btn-primary {
    background: var(--primary-500);
    border: 1px solid var(--primary-500);
    box-shadow: none;
}

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

.btn-outline-primary {
    color: var(--primary-700);
    border-color: var(--primary-200);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-300);
}

.btn-link {
    color: var(--primary-700);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary-600);
}

/* Tables */
.table {
    margin-bottom: 0;
    font-size: 0.93rem;
}

.table-responsive-sticky {
    position: relative;
    overflow-x: auto;
}

.table-scroll-cue::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.08), transparent);
}

.table-responsive-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
}

.table thead th {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #3c4043;
    border-bottom: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
}

.table td {
    vertical-align: middle;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.table-sm th { padding: 0.35rem 0.6rem; }
.table-sm td { padding: 0.35rem 0.6rem; }

.table-small {
    font-size: 0.875rem;
}
.table-small thead th {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
}
.table-small td {
    padding: 0.25rem 0.5rem;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(79, 142, 250, 0.035);
}

/* Forms */
.form-control,
.form-select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: #eef2f7;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-300);
    box-shadow: 0 0 0 4px rgba(79, 142, 250, 0.15);
    outline: 0;
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--surface-100);
    opacity: 0.8;
    cursor: not-allowed;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--ink-700);
    letter-spacing: 0.02em;
}

.form-label.required::after {
    content: " *";
    color: #e86a84;
}

.input-group-text {
    background-color: var(--surface-100);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--ink-700);
    font-weight: 600;
    border-radius: 12px;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-300);
    color: var(--primary-700);
}

.form-check-input:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

.form-check-input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(79, 142, 250, 0.18);
}

.invalid-feedback,
.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
}

.invalid-feedback { color: #e86a84; }
.valid-feedback { color: #2f9e62; }

/* Form layout helpers */
.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-grid-sm {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid-lg {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.form-section + .form-section {
    margin-top: 1.5rem;
}

.form-grid .form-floating textarea {
    min-height: 120px;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #2f9e62;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #e86a84;
}

.validation-summary-errors ul {
    margin-bottom: 0;
}

/* Badges */
.badge {
    font-weight: 700;
    padding: 0.45em 0.8em;
    font-size: 0.78em;
    letter-spacing: 0.025em;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge i { font-size: 0.9em; }

.badge.bg-primary   { background-color: var(--primary-500) !important; color: #fff; }
.badge.bg-success   { background-color: #34a853 !important; color: #fff; }
.badge.bg-warning   { background-color: #fbbc05 !important; color: #202124; }
.badge.bg-danger    { background-color: #ea4335 !important; color: #fff; }
.badge.bg-info      { background-color: var(--primary-500) !important; color: #fff; }
.badge.bg-secondary { background-color: #5f6368 !important; color: #fff; }
.badge.bg-dark { background-color: #1f2937 !important; color: #fff; }
.badge-outline { background-color: transparent; border: 1px solid currentColor; font-weight: 600; }

/* Alerts */
.alert {
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 8px 24px rgba(60, 64, 67, 0.12);
}

.alert-success { background: #e6f4ea; border-color: #34a853; color: #1b5e20; }
.alert-info    { background: var(--bs-primary-bg-subtle); border-color: var(--primary-200); color: var(--primary-500); }
.alert-warning { background: #fff8e1; border-color: #f9a825; color: #5f4320; }
.alert-danger  { background: #ffebee; border-color: #d32f2f; color: #7f1b1d; }

/* Upload area */
.upload-area {
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: #fff;
    border: 1px dashed #dadce0;
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.upload-area.dragover {
    border-color: #1a73e8 !important;
    background-color: #e8f0fe;
}

/* Code and monospace */
code {
    padding: 0.25em 0.45em;
    border-radius: 10px;
    font-size: 0.9em;
}

.font-monospace {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
}

/* Stats cards */
.stats-card {
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.stats-card.processing { border-color: #f0c94c; }
.stats-card.ready { border-color: var(--primary-500); }
.stats-card.exported { border-color: #2f9e62; }
.stats-card.failed { border-color: #e86a84; }

/* File input prominence */
.file-input-prominent {
    border: 2px dashed var(--primary-200) !important;
    background-color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    height: auto !important;
}

.file-input-prominent:hover {
    border-color: var(--primary-500) !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(45, 86, 179, 0.08);
}

.file-input-prominent::file-selector-button {
    background-color: var(--primary-500);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    margin-right: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-input-prominent:hover::file-selector-button {
    background-color: var(--primary-700);
}

/* Dark mode for prominent file input */
[data-bs-theme="dark"] .file-input-prominent {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background-color: #0f1626 !important;
}

[data-bs-theme="dark"] .file-input-prominent:hover {
    border-color: var(--primary-400) !important;
    background-color: #161c2d !important;
}

/* Badge colors matching Dashboard stat-card colors */
.badge.bg-processing {
    background-color: #f59e0b !important;
    color: white;
}
.badge.bg-ready {
    background-color: #10b981 !important;
    color: white;
}
.badge.bg-export {
    background-color: #8b5cf6 !important;
    color: white;
}
.badge.bg-failed {
    background-color: #ef4444 !important;
    color: white;
}
.badge.bg-pending {
    background-color: #6b7280 !important;
    color: white;
}
[data-bs-theme="dark"] .badge.bg-processing {
    background-color: rgba(245, 158, 11, 0.8) !important;
}
[data-bs-theme="dark"] .badge.bg-ready {
    background-color: rgba(16, 185, 129, 0.8) !important;
}
[data-bs-theme="dark"] .badge.bg-export {
    background-color: rgba(139, 92, 246, 0.8) !important;
}
[data-bs-theme="dark"] .badge.bg-failed {
    background-color: rgba(239, 68, 68, 0.8) !important;
}
[data-bs-theme="dark"] .badge.bg-pending {
    background-color: rgba(107, 114, 128, 0.8) !important;
}

/* List groups */
.list-group {
    --bs-list-group-active-bg: var(--primary-500);
    --bs-list-group-active-border-color: var(--primary-600);
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
}

.list-group-item:first-child { border-top: none; }
.list-group-item:last-child { border-bottom: none; }

/* Animation */
.fade-in {
    animation: fadeIn 0.35s ease;
}

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

/* Dark mode support */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

[data-bs-theme="dark"] body {
    background: #0c111d;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .app-navbar {
    background: #1f1f1f;
    border-bottom-color: #2c2c2c;
}

[data-bs-theme="dark"] .app-navbar .navbar-brand {
    color: #f8fafc;
}

[data-bs-theme="dark"] .app-navbar .nav-link {
    color: #e8eaed;
}

[data-bs-theme="dark"] .app-navbar .nav-link.active,
[data-bs-theme="dark"] .app-navbar .nav-link:hover {
    background: rgba(26, 115, 232, 0.18);
    color: #e8f0fe;
}

[data-bs-theme="dark"] .app-navbar .btn-outline-primary,
[data-bs-theme="dark"] .theme-toggle,
[data-bs-theme="dark"] .language-toggle,
[data-bs-theme="dark"] .theme-toggle.show,
[data-bs-theme="dark"] .language-toggle.show {
    border-color: #3c4043;
    background: #2c2c2c;
    color: #e8f0fe;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: var(--primary-400);
    border-color: var(--primary-400);
    background: transparent;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background: rgba(79, 142, 250, 0.1);
    color: var(--primary-300);
    border-color: var(--primary-300);
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #e8f0fe;
    border-color: #5f6368;
    background: transparent;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #9aa0a6;
}

[data-bs-theme="dark"] .card {
    background-color: #1f1f1f;
    border-color: #2c2c2c;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer {
    background: #242424;
    border-color: #2c2c2c;
    color: #e8eaed;
}

[data-bs-theme="dark"] .table {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .table thead th {
    background: #1f2937;
    color: #e5e7eb;
    border-bottom-color: #1f2937;
}

[data-bs-theme="dark"] .table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background-color: #0f1626;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(79, 142, 250, 0.22);
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #111827;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-bs-theme="dark"] .list-group {
    --bs-list-group-active-bg: #1f1f1f;
    --bs-list-group-active-border-color: #2c2c2c;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #161c2d;
    border-color: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
}

[data-bs-theme="dark"] code {
    background-color: #1f283b;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .alert {
    background-color: #141b2c;
    border-color: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .alert-success {
    background-color: #1f3225;
    border-color: #2c4a35;
    color: #d5f6e3;
}

[data-bs-theme="dark"] .alert-info {
    background-color: #0f2737;
    border-color: #2f4f75;
    color: #d6ecff;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: #2f250a;
    border-color: #423312;
    color: #ffeab8;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #301620;
    border-color: #4a2432;
    color: #ffd7df;
}

[data-bs-theme="dark"] .upload-area {
    background-color: #111827;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .upload-area.dragover {
    border-color: var(--primary-400) !important;
    background-color: rgba(79, 142, 250, 0.12);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-navbar .navbar-brand {
        font-size: 0.98rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table {
        font-size: 0.88rem;
    }
}

/* Dashboard styles */
.stat-card {
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(20px, -20px);
}

.stat-card.processing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}
.stat-card.processing::before { background: #f59e0b; }
.stat-card.processing .stat-icon, .stat-icon-processing { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.processing .stat-value { color: #92400e; }
[data-bs-theme="dark"] .stat-card.processing {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}
[data-bs-theme="dark"] .stat-card.processing .stat-value { color: #fcd34d; }

.stat-card.ready {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}
.stat-card.ready::before { background: #10b981; }
.stat-card.ready .stat-icon, .stat-icon-ready { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card.ready .stat-value { color: #065f46; }
.stat-icon.primary, .stat-icon-primary { background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); }
.stat-icon.processing, .stat-icon-processing { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.info { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.stat-icon.success { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-icon.secondary { background: linear-gradient(135deg, #64748b, #475569); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
[data-bs-theme="dark"] .stat-card.ready {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}
[data-bs-theme="dark"] .stat-card.ready .stat-value { color: #6ee7b7; }

.stat-card.export {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    border-color: #8b5cf6;
}
.stat-card.export::before { background: #8b5cf6; }
.stat-card.export .stat-icon, .stat-icon-export { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-card.export .stat-value { color: #5b21b6; }
[data-bs-theme="dark"] .stat-card.export {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.4);
}
[data-bs-theme="dark"] .stat-card.export .stat-value { color: #c4b5fd; }

.stat-card.failed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}
.stat-card.failed::before { background: #ef4444; }
.stat-card.failed .stat-icon, .stat-icon-failed { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-card.failed .stat-value { color: #991b1b; }
[data-bs-theme="dark"] .stat-card.failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.4);
}
[data-bs-theme="dark"] .stat-card.failed .stat-value { color: #fca5a5; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon-lg { width: 64px !important; height: 64px !important; font-size: 2rem !important; }
.stat-icon-sm { width: 40px !important; height: 40px !important; font-size: 1.2rem !important; }

/* Custom utilities to replace inline styles */
.fs-tiny { font-size: 0.75rem !important; }
.extra-small { font-size: 0.75rem !important; }
.fs-0-65rem { font-size: 0.65rem !important; }

/* Inline copy buttons */
.btn-copy-inline {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.1s;
    color: currentColor !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.btn-copy-inline:hover {
    opacity: 1;
    background: transparent !important;
    color: var(--primary-500) !important;
}

.btn-copy-inline:active {
    transform: scale(0.9);
}

.btn-copy-inline.btn-success {
    opacity: 1;
    color: #2f9e62 !important;
}
.fs-0-85rem { font-size: 0.85rem !important; }
.fs-0-8em { font-size: 0.8em !important; }
.fs-1-5rem { font-size: 1.5rem !important; }
.fs-1-75rem { font-size: 1.75rem !important; }
.fs-2-5rem { font-size: 2.5rem !important; }

.w-100px { width: 100px !important; }
.w-40px { width: 40px !important; }
.w-80px { width: 80px !important; }
.w-0-percent { width: 0% !important; }
.w-30-percent { width: 30% !important; }
.w-40-percent { width: 40% !important; }

.h-6px { height: 6px !important; }
.h-8px { height: 8px !important; }
.h-12px { height: 12px !important; }
.h-46px { height: 46px !important; line-height: 1 !important; }
.h-120px { height: 120px !important; }
.h-260px { height: 260px !important; }
.h-300px { height: 300px !important; }
.h-350px { height: 350px !important; }

.sq-32 { width: 32px !important; height: 32px !important; }
.sq-36 { width: 36px !important; height: 36px !important; }
.sq-48 { width: 48px !important; height: 48px !important; }
.sq-56 { width: 56px !important; height: 56px !important; }
.sq-64 { width: 64px !important; height: 64px !important; }

.max-w-150px { max-width: 150px !important; }
.max-w-500px { max-width: 500px !important; }
.max-w-600px { max-width: 600px !important; }

.max-h-140px { max-height: 140px !important; }
.max-h-150px { max-height: 150px !important; }
.max-h-160px { max-height: 160px !important; }
.max-h-200px { max-height: 200px !important; }
.max-h-250px { max-height: 250px !important; }
.max-h-320px { max-height: 320px !important; }
.max-h-400px { max-height: 400px !important; }
.max-vh-80 { max-height: 80vh !important; }

.min-h-0 { min-height: 0 !important; }

.lh-1-2 { line-height: 1.2 !important; }
.lh-1-4 { line-height: 1.4 !important; }

.z-index-1020 { z-index: 1020 !important; }
.z-index-1030 { z-index: 1030 !important; }
.z-index-1050 { z-index: 1050 !important; }
.z-index-1080 { z-index: 1080 !important; }
    
.toast-container {
    margin-top: 4rem;
}

.sticky-top-1rem { position: sticky !important; top: 1rem !important; }
.border-primary-2px { border: 2px solid var(--primary-500) !important; }
.vertical-align-middle { vertical-align: middle !important; }
.py-120px-60px { padding-top: 120px !important; padding-bottom: 60px !important; }

/* Special utility for conditional display */
.d-block-credit-invoice { display: block !important; }
[data-invoice-type]:not([data-invoice-type="CreditInvoice"]) .d-block-credit-invoice { display: none !important; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.dash-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
}
[data-bs-theme="dark"] .dash-section {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.dash-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dash-section-title i {
    font-size: 1.1rem;
}

.action-card {
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    height: 100%;
}
[data-bs-theme="dark"] .action-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.action-icon.upload { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.action-icon.export { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.action-icon.company { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.action-icon.credits { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }

/* How It Works - Compact Steps */
.hiw-steps {
    display: flex;
    flex-direction: column;
}
.hiw-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.hiw-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.hiw-step-icon.step-1 { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.hiw-step-icon.step-2 { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.hiw-step-icon.step-3 { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.hiw-step-icon.step-4 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }

.hiw-step-body {
    padding-top: 0.1rem;
    min-width: 0;
}
.hiw-step-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
}
.hiw-step-label.step-1 { color: #3b82f6; }
.hiw-step-label.step-2 { color: #d97706; }
.hiw-step-label.step-3 { color: #059669; }
.hiw-step-label.step-4 { color: #7c3aed; }
[data-bs-theme="dark"] .hiw-step-label.step-1 { color: #60a5fa; }
[data-bs-theme="dark"] .hiw-step-label.step-2 { color: #fbbf24; }
[data-bs-theme="dark"] .hiw-step-label.step-3 { color: #34d399; }
[data-bs-theme="dark"] .hiw-step-label.step-4 { color: #a78bfa; }

.hiw-step-title {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.3;
}
.hiw-step-desc {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
    line-height: 1.4;
}
.hiw-step-connector {
    width: 2px;
    height: 16px;
    margin: 4px 0 4px 19px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
}
[data-bs-theme="dark"] .hiw-step-connector {
    background: rgba(255, 255, 255, 0.12);
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}
.faq-accordion .accordion-item:last-child {
    border-bottom: none;
}
[data-bs-theme="dark"] .faq-accordion .accordion-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.faq-accordion .accordion-button {
    background: transparent;
    box-shadow: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 0.25rem;
    gap: 0.75rem;
    color: var(--bs-body-color);
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--bs-body-color);
}
.faq-accordion .accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
}
.faq-accordion .accordion-body {
    padding: 0 0.25rem 1rem 2.75rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--bs-secondary-color);
}
.faq-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}
.faq-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1rem 0.75rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-bs-theme="dark"] .faq-feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.faq-feature-icon {
    font-size: 1.5rem;
}

/* Upload styles */
.border-dashed {
    border-style: dashed !important;
}

/* Landing page styles */
.landing-page {
    overflow-x: hidden;
}


.ls-1 { letter-spacing: 0.05em; }
.ls-2 { letter-spacing: 0.1em; }

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


/* Glow pulse animations */
@keyframes glow-pulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}
@keyframes glow-pulse-delayed {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.15); }
}
@keyframes glow-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); opacity: 0.25; }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); opacity: 0.15; }
}
@keyframes glow-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    33% { transform: translate(20px, -30px) scale(1.1); opacity: 0.3; }
    66% { transform: translate(-15px, 20px) scale(0.95); opacity: 0.25; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
}
@keyframes glow-float-reverse {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    33% { transform: translate(-20px, 30px) scale(1.1); opacity: 0.3; }
    66% { transform: translate(15px, -20px) scale(0.95); opacity: 0.25; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
}

.animate-glow-pulse {
    animation: glow-pulse 8s ease-in-out infinite;
}
.animate-glow-pulse-delayed {
    animation: glow-pulse-delayed 10s ease-in-out infinite;
}
.animate-glow-rotate {
    animation: glow-rotate 20s linear infinite;
}
.animate-glow-float {
    animation: glow-float 12s ease-in-out infinite;
}
.animate-glow-float-reverse {
    animation: glow-float-reverse 14s ease-in-out infinite;
}

/* Ensure sections have proper z-index */
.hero-section,
#features,
#pricing {
    position: relative;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .alert {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.password-toggle {
    cursor: pointer;
    background-color: var(--surface-100) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: var(--ink-700) !important;
}

.password-toggle:hover {
    color: var(--primary-500) !important;
    background-color: var(--surface-200) !important;
}

[data-bs-theme="dark"] .password-toggle {
    background-color: #0f1626 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e5e7eb !important;
}

[data-bs-theme="dark"] .password-toggle:hover {
    color: var(--primary-400) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Keyboard Shortcuts Styles */
.shortcut-badge {
    display: inline-block;
    padding: 0.2em 0.5em;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-body-color);
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    box-shadow: inset 0 -1px 0 var(--bs-border-color);
    font-family: var(--bs-font-monospace);
}

/* Popover Styles */
.popover {
    --bs-popover-max-width: 350px;
}
.popover-header {
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--primary-50);
    color: var(--primary-700);
}
.popover-body {
    font-size: 0.8rem;
    line-height: 1.4;
}
[data-bs-theme="dark"] .popover-header {
    background-color: #1f283b;
    color: var(--primary-300);
}

