/* InvoiceConvert – Design System: Swiss Minimalism / Invoice & Billing Tool
 * Primary: #1E3A5F (Navy)  |  Secondary: #2563EB (Blue)  |  Accent: #059669 (Green)
 * Typography: Calistoga (Display) + Inter (Body)
 * Anti-patterns avoided: Playful design, AI purple/pink gradients, unclear fees
 */

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

::selection {
    background-color: rgba(30, 58, 95, 0.12);
    color: #0F172A;
}

/* Accessible Focus */
:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Tabular Figures for financial data */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Transitions – 200ms (Swiss Style: smooth, not flashy) */
input, select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

table tbody tr {
    transition: background-color 0.15s ease;
}

button:active:not(:disabled),
a:active:not(:disabled) {
    transform: scale(0.98);
}

/* Upload Zone */
#upload-zone {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Scrollbar – Minimal */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

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

/* Responsive tables */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
}

/* Print */
@media print {
    nav, footer, button, .no-print {
        display: none !important;
    }
    body {
        background: white;
    }
}
