/* ===================================
   Lochross Design System
   Based on lochross.com
   =================================== */

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

:root {
    --text: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #777777;
    --bg: #F4F4F4;
    --bg-alt: #FFFFFF;
    --accent: #001F54;
    --accent-mid: #003580;
    --accent-light: #E6EBF5;
    --accent-orange: #FF6F00;
    --border: #E2E2E0;
    --danger: #d93025;
    --success: #1e8e3e;
    --warning: #f9ab00;
    --error: #d93025;
    --surface: #FFFFFF;
    --brand-red: #001F54;
    --brand-grey: #4A4A4A;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    --shadow-lg: 0 1px 3px rgba(60,64,67,0.3), 0 8px 16px 4px rgba(60,64,67,0.15);
}

[data-theme="dark"] {
    --text: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #80868b;
    --bg: #1a1a1d;
    --bg-alt: #2d2e31;
    --surface: #292a2d;
    --border: #5f6368;
    --accent: #7BA3D9;
    --accent-mid: #5B8CC9;
    --accent-light: #1e3a5f;
    --danger: #f28b82;
    --success: #81c995;
    --warning: #fdd663;
    --error: #f28b82;
    --brand-red: #7BA3D9;
    --brand-grey: #9aa0a6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.5), 0 1px 3px 1px rgba(0,0,0,0.3);
    --shadow-md: 0 1px 3px rgba(0,0,0,0.5), 0 4px 8px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 1px 3px rgba(0,0,0,0.5), 0 8px 16px 4px rgba(0,0,0,0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

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

/* Header */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 500;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dual Branding */
.header-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.logo-section h1 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.header-divider {
    width: 1px;
    height: 26px;
    background: var(--border);
}

.header-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

h1 {
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.3px;
}

h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 16px;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 8px;
}

/* Main content */
main {
    padding: 32px 0;
}

/* Buttons */
.btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-mid);
}

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

.btn-secondary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

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

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

/* Forms */
form {
    background: var(--surface);
}

fieldset {
    border: none;
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

legend {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-with-help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.info-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
    cursor: help;
    position: relative;
    line-height: 1;
}

.info-dot::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    top: 22px;
    width: min(320px, 72vw);
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    z-index: 1200;
}

.info-dot:hover::after,
.info-dot:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.form-group input[readonly] {
    background: var(--bg);
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 72px;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.section-hint {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Form rows - side by side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-row-align-bottom {
    align-items: stretch;
}

/* Date selector buttons */
.date-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.date-btn {
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.date-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.date-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Date display */
.date-input-wrapper {
    position: relative;
}

.date-display {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.date-display:hover {
    border-color: var(--accent);
}

.date-display.placeholder {
    color: var(--text-muted);
}

.date-input-wrapper input[type="date"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Line items */
.line-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--surface);
}

.line-item-row-1 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.line-item-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1.5fr auto;
    gap: 12px;
    align-items: end;
}

.line-item .form-group {
    margin-bottom: 0;
}

.btn-remove-item {
    padding: 8px 14px;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}

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

#add-item-btn {
    margin-top: 8px;
}

/* Totals section */
.totals-grid {
    max-width: 350px;
    margin-left: auto;
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.total-row label {
    font-weight: 500;
    color: var(--text-secondary);
}

.total-row input {
    width: 120px;
    text-align: right;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.total-row span {
    font-weight: 600;
    min-width: 100px;
    text-align: right;
    font-size: 16px;
}

.total-final {
    border-top: 2px solid var(--accent);
    margin-top: 12px;
    padding-top: 16px;
}

.total-final label,
.total-final span {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

/* Tax toggle and mode selector */
.tax-toggle-row {
    margin-bottom: 12px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
}

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

.tax-mode-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.tax-mode-btn {
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.tax-mode-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.tax-mode-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

#tax-row-label.extract-mode {
    font-style: italic;
    color: var(--text-muted);
}

/* Toggle row for collapsible sections */
.toggle-row {
    margin-bottom: 12px;
}

/* Line item title row */
.line-item-title-row {
    margin-bottom: 12px;
}

/* Quote section alignment — label stays top, input drops to bottom */
.form-row-align-bottom > .form-group {
    display: flex;
    flex-direction: column;
}

.form-row-align-bottom > .form-group > input,
.form-row-align-bottom > .form-group > .date-input-wrapper {
    margin-top: auto;
}

/* Tags */
#tags-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

#tags-pills:empty {
    margin-bottom: 0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--accent);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    animation: pill-pop 0.15s ease-out;
}

@keyframes pill-pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tag-pill .tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.tag-pill .tag-remove:hover {
    opacity: 1;
}

.tag-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tag-input-row input {
    width: 33%;
    flex: none;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}

.tag-input-row .btn-small {
    white-space: nowrap;
}

/* Favorite pills */
.favorites-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.favorites-row:empty {
    display: none;
}

.favorite-pill {
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s;
    user-select: none;
}

.favorite-pill:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.favorite-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Autocomplete */
.suggestions-dropdown {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.suggestion-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-alt);
    transition: background 0.15s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--accent-light);
}

.suggestion-item .vendor-name,
.suggestion-item .product-name {
    font-weight: 600;
    color: var(--text);
}

.suggestion-item .vendor-details,
.suggestion-item .product-details {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Cards (for invoice list) */
.summary-bar {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.card-body {
    margin: 16px 0;
}

.card-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 14px;
}

.card-label {
    color: var(--text-muted);
}

.card-value {
    font-weight: 600;
    color: var(--text);
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-actions .btn {
    flex: 1;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.empty-state h2 {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    margin-
}

/* Footer */
footer {
    border-top: none;
    padding: 24px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-credit {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .header-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .header-title {
        display: none;
    }

    .header-divider {
        display: none;
    }

    h1 {
        font-size: 18px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .line-item-row-1,
    .line-item-row-2 {
        grid-template-columns: 1fr;
    }

    .tax-inputs {
        flex-wrap: wrap;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .totals-grid {
        max-width: 100%;
    }

    .total-row input {
        width: 100px;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 16px 48px 16px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: none;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 400px;
}

.toast-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-info {
    border-left: 4px solid var(--accent);
}

.toast-error {
    border-left: 4px solid var(--error);
}

.toast-message {
    font-size: 0.95rem;
    color: var(--text);
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text);
}

/* ===================================
   UX Improvements
   =================================== */

/* Sticky form actions */
.form-actions {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    z-index: 100;
}

/* Generate Invoice button */
.btn-generate {
    background: var(--accent);
    color: white;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-generate:hover {
    background: var(--accent-mid);
    box-shadow: var(--shadow-md);
}

.btn-generate:active {
    box-shadow: none;
}

.btn-generate:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Required field indicator */
.required {
    color: var(--danger);
    font-weight: 400;
}

/* Field sizing hints */
input[name="po_number"] {
    max-width: 200px;
}

input[name="quantity[]"] {
    max-width: 100px;
}

input[name="unit[]"] {
    max-width: 80px;
}

textarea[name="notes"] {
    min-height: 80px;
}

/* Better textarea styling */
textarea {
    resize: vertical;
    min-height: 60px;
}

/* Input focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
    transition: all 0.15s ease;
}

/* Logo hover effect */
.logo-link {
    display: inline-block;
    transition: opacity 0.2s;
}

.logo-link:hover .brand-logo {
    opacity: 0.8;
}

/* Tax display styling (legacy - kept for compatibility) */

/* Keyboard shortcuts hint */
.keyboard-shortcuts {
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 8px;
}

kbd {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-family: inherit;
    box-shadow: 0 1px 0 var(--border);
}

/* Results page overlay */
.results-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.results-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.results-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.results-overlay.show .results-card {
    transform: scale(1) translateY(0);
}

.results-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.results-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.results-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-
}

.results-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
}

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

.results-btn-primary:hover {
    background: var(--accent-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 31, 84, 0.3);
}

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

.results-btn-secondary:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.results-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.15s;
}

.results-dismiss:hover {
    color: var(--accent);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    color: var(--text);
}

/* Dark mode: invert the dark logo so it's visible on dark bg */
[data-theme="dark"] .brand-logo {
    filter: invert(1) hue-rotate(180deg);
}

[data-theme="dark"] {
    color-scheme: dark;
}

/* Dark mode: buttons/pills on accent bg need dark text for contrast */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-generate,
[data-theme="dark"] .tag-pill,
[data-theme="dark"] .favorite-pill.active,
[data-theme="dark"] .date-btn.active,
[data-theme="dark"] .tax-mode-btn.active,
[data-theme="dark"] .results-btn-primary {
    color: #202124;
}

[data-theme="dark"] .btn-danger {
    color: #202124;
}

[data-theme="dark"] .tag-pill .tag-remove {
    color: #202124;
}

/* Demo Banner */
.demo-banner {
    background: var(--accent-orange);
    color: white;
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.demo-banner a {
    color: white;
    text-decoration: underline;
}
