/* DeductFlow - Ocean Flow Dark Theme */
:root {
    /* Ocean Flow Brand */
    --ocean-deep: #0B2B3C;
    --ocean-dark: #0A2230;
    --ocean-mid: #0F3D4A;
    
    /* Teal System */
    --teal-primary: #00A8B5;
    --teal-secondary: #008A94;
    --teal-dark: #006B73;
    --teal-bright: #00D4E4;
    --teal-glow: #00E5EE;
    
    /* Accent Colors */
    --coral: #FF6B6B;
    --coral-soft: #FF8A8A;
    --coral-dark: #E85A5A;
    --amber: #F59E0B;
    --amber-dark: #d97706;
    --purple: #6366f1;
    --purple-soft: #8b5cf6;
    --info-blue: #3b82f6;
    
    /* Backgrounds */
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #1f1f23;
    --bg-card: #18181b;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Text */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 168, 181, 0.2);
    
    /* Layout */
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Legacy aliases — remove after full migration */
    --green-primary: var(--teal-primary);
    --green-secondary: var(--teal-secondary);
    --green-dark: var(--teal-dark);
    --green-light: var(--teal-bright);
    --red: var(--coral);
    --red-dark: var(--coral-dark);
    --yellow: var(--amber);
    --blue: var(--teal-primary);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-dark) 100%);
    border-right: 1px solid rgba(0, 168, 181, 0.15);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-wordmark {
    display: block;
    height: 44px;
    width: auto;
}

/* Fallback text logo styles */
.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-text .logo-host {
    color: white;
}

.logo-text .logo-flow {
    font-weight: 300;
    color: var(--teal-bright);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

.property-selector {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.property-selector label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.property-selector select {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-group-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    padding: 12px 16px 4px;
    text-transform: uppercase;
}

.nav-group-label:first-child {
    padding-top: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(0, 168, 181, 0.15);
    color: var(--teal-bright);
    border-left: 3px solid var(--teal-primary);
}

.nav-icon {
    font-size: 18px;
}

.nav-badge {
    background: var(--coral);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.nav-badge:empty,
.nav-badge[data-count="0"] {
    display: none;
}

.nav-year {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.stat-year {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.time-filter label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.time-filter select {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
    transition: var(--transition);
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ocean-deep), var(--teal-primary));
    color: white;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-bright));
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 168, 181, 0.3);
}

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

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

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

.btn-danger:hover {
    background: var(--red-dark);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stats-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 32px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card.income .stat-value { color: var(--teal-bright); }
.stat-card.expenses .stat-value { color: var(--coral); }
.stat-card.profit .stat-value { color: var(--teal-glow); }
.stat-card.profit.negative .stat-value { color: var(--coral); }

/* Deductions Completeness Score */
.deductions-score {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0 8px;
}
.score-ring-container {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.score-ring-svg { width: 72px; height: 72px; }
.score-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-bright);
}
.score-details { display: flex; flex-direction: column; gap: 4px; }
.score-label { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }
.score-sublabel { font-size: 0.8rem; color: var(--text-muted); }

.view-details-link {
    font-size: 0.8rem;
    color: var(--teal-bright);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.view-details-link:hover { text-decoration: underline; }

/* Collapsible Card */
.collapsible-header { cursor: pointer; }
.collapsible-header:hover { opacity: 0.85; }
.collapse-chevron {
    transition: transform 0.2s ease;
    color: var(--text-muted);
    margin-left: 8px;
}
.collapsible-body {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.collapsible-body.collapsed {
    max-height: 0;
    overflow: hidden;
}
.collapsible-header .collapse-chevron { transform: rotate(0deg); }
.collapsible-header.collapsed-state .collapse-chevron { transform: rotate(-90deg); }

/* Empty States */
.empty-state-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}
.empty-state-page .empty-state-icon {
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 16px;
}
.empty-state-page h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.empty-state-page p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.empty-state-btn {
    font-size: 0.9rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.view-all {
    font-size: 13px;
    color: var(--green-primary);
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.chart-container {
    position: relative;
    height: 250px;
}

.chart-container.large {
    height: 300px;
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.transaction-item:hover {
    background: var(--bg-secondary);
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    font-size: 20px;
}

.transaction-details {
    display: flex;
    flex-direction: column;
}

.transaction-desc {
    font-size: 14px;
    font-weight: 500;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 600;
    color: var(--red);
}

.transaction-amount.income {
    color: var(--green-primary);
}

/* Data Tables */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filters-bar select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    min-width: 180px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.notes-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
}

.receipt-indicator {
    font-size: 16px;
    cursor: pointer;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.7;
    transition: var(--transition);
}

.action-btn:hover {
    opacity: 1;
}

/* Reports */
.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.reports-grid .card.full-width {
    grid-column: 1 / -1;
}

.property-name {
    font-size: 13px;
    color: var(--green-primary);
}

.pl-statement {
    font-size: 14px;
}

.pl-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.pl-row.header {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pl-row.total {
    font-weight: 600;
    font-size: 16px;
    border-top: 2px solid var(--green-primary);
    margin-top: 8px;
    padding-top: 16px;
}

.pl-row.total .pl-amount.positive { color: var(--green-primary); }
.pl-row.total .pl-amount.negative { color: var(--red); }

.pl-row.indent {
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* YTD Summary */
.ytd-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.ytd-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.ytd-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.ytd-value {
    font-size: 20px;
    font-weight: 600;
}

.ytd-value.green { color: var(--green-primary); }
.ytd-value.red { color: var(--red); }

/* Tax Prep */
.tax-year {
    font-size: 13px;
    color: var(--yellow);
}

.schedule-c {
    font-size: 14px;
}

.schedule-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.schedule-line.header {
    font-weight: 600;
    background: var(--bg-tertiary);
    padding: 12px;
    margin: 0 -20px;
    border-radius: var(--radius-sm);
}

.line-number {
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 12px;
}

.tax-estimate {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.tax-estimate .estimate-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--green-primary);
    display: block;
    margin: 12px 0;
}

.tax-estimate .estimate-note {
    font-size: 12px;
    color: var(--text-muted);
}

.deductions-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.checklist-item.has-data {
    border-left: 3px solid var(--teal-primary);
    background: rgba(0, 168, 181, 0.05);
}

.checklist-item.no-data {
    opacity: 0.5;
}

.checklist-item.reviewed {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.checklist-item:hover {
    background: rgba(0, 168, 181, 0.08);
}

.checklist-check {
    width: 18px;
    flex-shrink: 0;
    color: var(--teal-primary);
}

.checklist-item.reviewed .checklist-check {
    color: #22c55e;
}

.checklist-hint {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.checklist-icon {
    font-size: 18px;
}

.checklist-info {
    flex: 1;
}

.checklist-label {
    font-size: 13px;
    display: block;
}

.checklist-amount {
    font-size: 12px;
    color: var(--teal-bright);
    font-weight: 600;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

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

/* Forms */
form {
    padding: 20px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-primary);
}

.form-group input[type="file"] {
    padding: 8px;
}

/* Form validation error states */
.form-group.field-error input,
.form-group.field-error select,
.form-group.field-error textarea {
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.form-group.field-error label {
    color: var(--coral);
}

.field-error-text {
    display: block;
    color: var(--coral);
    font-size: 0.78rem;
    margin-top: 4px;
    font-weight: 500;
}

.receipt-preview {
    margin-top: 8px;
}

.receipt-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-sm);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.deduction-preview {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.deduction-preview span:last-child {
    color: var(--green-primary);
    font-weight: 600;
}

.bulk-count {
    text-align: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 3px solid var(--teal-primary);
}

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

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Bulk Action Bar */
.bulk-action-bar {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.3);
    transition: bottom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bulk-action-bar.active {
    bottom: 24px;
}

.bulk-action-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-primary);
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.bulk-action-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: var(--transition);
}

.bulk-action-close:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .bulk-action-bar {
        left: 12px;
        right: 12px;
        transform: none;
        gap: 8px;
        padding: 10px 14px;
    }

    .bulk-action-bar.active {
        bottom: 12px;
    }

    .bulk-action-count {
        font-size: 13px;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Pending Review Banner */
.pending-review-banner {
    background: linear-gradient(135deg, var(--ocean-deep), var(--teal-primary));
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow), var(--shadow-glow);
}

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

.pending-icon {
    font-size: 32px;
}

.pending-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pending-content strong {
    font-size: 15px;
}

.pending-content span:last-child {
    font-size: 12px;
    opacity: 0.8;
}

/* Email Forwarding Card */
.email-forward-card {
    background: linear-gradient(135deg, var(--ocean-deep), var(--bg-card));
    border: 1px solid rgba(0, 168, 181, 0.3);
}

.email-forward-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.email-icon {
    font-size: 40px;
}

.email-forward-header h3 {
    margin-bottom: 4px;
}

.email-forward-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.email-forward-address {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.email-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.email-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.email-box code {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--teal-glow);
    font-family: 'Inter', monospace;
}

.email-forward-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.tip-icon {
    font-size: 18px;
}

/* Pending Receipts */
.pending-count-label {
    font-size: 13px;
    color: var(--text-muted);
}

.pending-receipts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pending-receipt-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--yellow);
    transition: var(--transition);
}

.pending-receipt-item:hover {
    background: var(--bg-secondary);
}

.pending-receipt-thumb {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

.pending-receipt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pending-receipt-info {
    flex: 1;
}

.pending-receipt-source {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-receipt-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.pending-receipt-detected {
    font-size: 13px;
    color: var(--green-primary);
    margin-top: 6px;
}

.pending-receipt-actions {
    display: flex;
    gap: 8px;
}

/* Receipt Capture Options */
.receipt-capture-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.capture-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.capture-option:hover {
    border-color: var(--green-primary);
    background: var(--bg-card);
}

.capture-icon {
    font-size: 24px;
}

.capture-option span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Receipt Capture Modal */
.receipt-capture-body {
    padding: 20px;
}

.capture-zone {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.capture-zone:hover {
    border-color: var(--green-primary);
}

.capture-zone.drag-over {
    border-color: var(--teal-bright);
    background: rgba(0, 168, 181, 0.08);
    box-shadow: 0 0 20px rgba(0, 168, 181, 0.15);
}

.capture-drag-hint {
    font-size: 0.8rem;
    color: var(--teal-bright);
    margin-top: 12px;
    opacity: 0.7;
}

.capture-placeholder {
    text-align: center;
    padding: 40px;
}

.capture-big-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.capture-placeholder p {
    color: var(--text-secondary);
}

.capture-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.capture-preview {
    text-align: center;
    padding: 20px;
}

.capture-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.quick-expense-form {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.quick-form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-block {
    width: 100%;
}

/* Review Receipt Modal */
.modal-wide {
    max-width: 800px;
}

.review-receipt-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 20px;
}

.review-receipt-image {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 400px;
    overflow: auto;
}

.review-receipt-image img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.detected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--green-dark);
    color: var(--green-light);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 16px;
}

.review-actions {
    margin-top: 20px;
}

/* Processed List */
.processed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.processed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--green-primary);
}

.processed-icon {
    font-size: 20px;
}

.processed-info {
    flex: 1;
}

.processed-info strong {
    font-size: 14px;
}

.processed-info span {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.processed-amount {
    font-weight: 600;
    color: var(--red);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* Print Styles */
@media print {
    .sidebar, .page-header button, .filters-bar, .action-btns, .nav-links {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card, .stat-card {
        border: 1px solid #ddd;
        background: white;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .dashboard-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
    
    /* Hide less important expense columns on mobile: checkbox, category, vendor, receipt */
    #expensesTable th:nth-child(1),
    #expensesTable td:nth-child(1),
    #expensesTable th:nth-child(4),
    #expensesTable td:nth-child(4),
    #expensesTable th:nth-child(5),
    #expensesTable td:nth-child(5),
    #expensesTable th:nth-child(7),
    #expensesTable td:nth-child(7) {
        display: none;
    }

    .data-table {
        table-layout: auto;
    }

    /* Allow table card to scroll horizontally on mobile */
    .card:has(.data-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Review receipt modal responsive */
    .review-receipt-body {
        grid-template-columns: 1fr;
    }
    
    .review-receipt-image {
        max-height: 200px;
    }
    
    .pending-review-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .email-forward-tips {
        grid-template-columns: 1fr;
    }
    
    .pending-receipt-item {
        flex-wrap: wrap;
    }
    
    .pending-receipt-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

/* Mobile menu overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 98;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .main-content {
        padding-top: 70px;
    }
}

/* Location Section for Mileage */
.location-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.location-input-wrapper {
    display: flex;
    gap: 8px;
}

.location-input-wrapper input {
    flex: 1;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.distance-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: none;
}

.distance-status.show {
    display: block;
}

.distance-status.loading {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.distance-status.success {
    background: rgba(0, 168, 181, 0.15);
    color: var(--green-light);
}

.distance-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    height: 42px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green-primary);
}

.saved-locations-section {
    margin: 16px 0;
}

.saved-locations-section details {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.saved-locations-section summary {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.saved-locations-list {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saved-location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.saved-location-item .name {
    font-weight: 600;
    color: var(--green-primary);
}

.saved-location-item .address {
    color: var(--text-muted);
    font-size: 12px;
}

.saved-location-item button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.saved-location-item button:hover {
    color: var(--red);
}

.add-location-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.add-location-form input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

#calculateDistance {
    margin-top: 12px;
    width: 100%;
}

/* Import Statement Styles */
.import-step {
    padding: 20px 0;
}

.import-instructions {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.import-instructions h3 {
    margin-bottom: 12px;
    color: var(--green-primary);
}

.import-instructions ol {
    margin-left: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.import-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover,
.upload-zone.drag-over {
    border-color: var(--green-primary);
    background: rgba(0, 168, 181, 0.05);
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-placeholder p {
    margin: 4px 0;
}

.upload-formats {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px !important;
}

.column-mapping {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.import-summary {
    display: flex;
    gap: 24px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.import-summary span {
    font-size: 14px;
}

.import-summary span:first-child {
    color: var(--text-secondary);
}

.import-summary span:last-child {
    color: var(--green-primary);
    font-weight: 600;
}

.import-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.import-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

#importTable {
    font-size: 13px;
}

#importTable select {
    padding: 4px 8px;
    font-size: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.business-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.business-badge.yes {
    background: rgba(0, 168, 181, 0.2);
    color: var(--green-light);
}

.business-badge.maybe {
    background: rgba(245, 158, 11, 0.2);
    color: var(--yellow);
}

.business-badge.no {
    background: rgba(100, 100, 100, 0.2);
    color: var(--text-muted);
}

.row-dimmed {
    opacity: 0.4;
}

/* Enhanced Import Styles */
.row-excluded { 
    opacity: 0.4; 
    background: #1a1a2e !important; 
}
.row-excluded td { 
    text-decoration: line-through; 
}
.payee-name { 
    font-weight: 600; 
    color: var(--text-primary);
}
.payee-sample { 
    font-size: 0.75rem; 
    color: var(--text-secondary); 
    margin-top: 2px; 
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-center { 
    text-align: center; 
}
.text-right { 
    text-align: right; 
}
.sortable { 
    cursor: pointer;
    user-select: none;
}
.sortable:hover { 
    background: rgba(255,255,255,0.05); 
}
.include-checkbox { 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
    accent-color: var(--teal-primary);
}
#importTable th {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}

/* ============================================ */
/* TIME TRACKING STYLES */
/* ============================================ */

/* Goal Banner */
.goal-banner {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    border: 1px solid rgba(0, 168, 181, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.goal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.goal-icon {
    font-size: 2rem;
}

.goal-info h3 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.goal-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-container {
    flex: 1;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-primary), var(--teal-glow));
    border-radius: 12px;
    transition: width 0.5s ease;
}

.progress-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.goal-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--amber);
}

.status-badge.qualified {
    background: rgba(0, 168, 181, 0.2);
    color: var(--teal-glow);
}

.status-badge.warning {
    background: rgba(239, 68, 68, 0.2);
    color: var(--coral);
}

/* Timer Card */
.timer-card {
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.timer-card.timer-active {
    border-color: var(--teal-primary);
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.15), transparent);
    box-shadow: var(--shadow-glow);
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.timer-time {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'SF Mono', monospace;
    color: var(--text-primary);
}

.timer-activity {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.timer-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timer-select {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 180px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-bright));
    color: #fff;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--teal-bright), var(--teal-glow));
}

.btn-danger {
    background: var(--coral);
    color: #fff;
}

.btn-danger:hover {
    background: var(--coral-dark);
}

/* Person Hours Grid */
.person-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.person-hours-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.person-hours-card.owner {
    border-color: var(--amber);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent);
}

.person-hours-card.leading {
    border-color: var(--teal-primary);
}

.person-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.person-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 24px;
    display: flex;
    align-items: center;
}

.person-icon svg {
    width: 20px;
    height: 20px;
}

.person-name {
    font-weight: 600;
    color: var(--text-primary);
}

.person-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.person-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hours-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.crown {
    font-size: 1.25rem;
}

/* Stats Card Enhancements */
.stat-card.owner-hours {
    border-color: var(--amber);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), var(--bg-primary));
}

.stat-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-top: 0.5rem;
}

.stat-badge.leading {
    background: rgba(0, 168, 181, 0.2);
    color: var(--teal-primary);
}

.stat-badge.not-leading {
    background: rgba(239, 68, 68, 0.2);
    color: var(--coral);
}

/* Person Tag in Table */
.person-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-tag svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Table Filters */
.table-filters {
    display: flex;
    gap: 0.5rem;
}

.table-filters select {
    padding: 0.4rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
}

/* Import Time Modal */
.import-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.import-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.import-option:hover {
    border-color: var(--amber);
    background: rgba(245, 158, 11, 0.1);
}

.option-icon {
    font-size: 2rem;
}

.option-info h4 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.option-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bulk-time-form {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
}

.hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Modal Small */
.modal-sm {
    max-width: 400px;
}

/* Responsive Timer */
@media (max-width: 768px) {
    .timer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .timer-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .goal-progress {
        flex-direction: column;
    }
}

/* ============================================ */
/* EMPLOYEES STYLES */
/* ============================================ */

/* Info Banner */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.1), rgba(0, 168, 181, 0.02));
    border: 1px solid rgba(0, 168, 181, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.banner-content strong {
    color: var(--teal-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.banner-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Employees Grid */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.employee-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.employee-card.family {
    border-left: 3px solid var(--teal-primary);
}

.employee-card:hover {
    border-color: var(--amber);
}

.employee-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.employee-icon {
    font-size: 2rem;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.employee-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.employee-actions {
    display: flex;
    gap: 0.25rem;
}

.employee-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bg-tertiary);
}

.emp-stat {
    flex: 1;
}

.emp-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.emp-stat-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.emp-stat-value.tax-free {
    color: var(--teal-primary);
}

.emp-stat-value.taxable {
    color: var(--amber);
}

.employee-badge {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(0, 168, 181, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--teal-primary);
    text-align: center;
}

.employee-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(0, 168, 181, 0.2);
    color: var(--teal-primary);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--amber);
}

.badge-neutral {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Stat Card Highlight */
.stat-card.highlight {
    border-color: var(--teal-primary);
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.1), var(--bg-primary));
}

.stat-card.highlight .stat-value {
    color: var(--teal-primary);
}

/* Input Prefix */
.input-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.input-prefix span {
    padding: 0.75rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-right: 1px solid var(--bg-tertiary);
}

.input-prefix input {
    border: none;
    background: transparent;
    flex: 1;
}

/* ============================================
   SCHEDULE C BREAKDOWN (Dashboard)
   ============================================ */

.schedule-c-card {
    margin-bottom: 1.5rem;
}

.schedule-c-breakdown {
    padding: 1rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.highlight {
    color: var(--green-light);
    font-weight: 500;
}

.breakdown-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-sublabel {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   COST SEGREGATION PAGE
   ============================================ */

.costseg-intro {
    margin-bottom: 1.5rem;
}

.costseg-intro p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.costseg-intro p:last-child {
    margin-bottom: 0;
}

.costseg-input-section {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.costseg-input-section .form-group {
    flex: 1;
    margin-bottom: 0;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.input-with-prefix .input-prefix {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-right: 1px solid var(--border-color);
    font-weight: 500;
}

.input-with-prefix input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.input-with-prefix input:focus {
    outline: none;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.costseg-summary {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-stat.highlight .summary-value {
    color: var(--green-primary);
}

/* Document Upload */
.document-upload-section {
    margin-bottom: 1.5rem;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.upload-area:hover {
    border-color: var(--green-primary);
    background: rgba(0, 168, 181, 0.05);
}

.upload-icon {
    font-size: 2rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.doc-icon {
    font-size: 1.5rem;
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doc-name {
    font-weight: 500;
    color: var(--text-primary);
}

.doc-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.doc-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-docs {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* ============================================
   INCOME PAGE
   ============================================ */

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Platform Upload Cards */
.platform-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-upload-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

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

.platform-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.platform-name {
    font-weight: 600;
    color: var(--text-primary);
}

.platform-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Uploaded Reports List */
.uploaded-reports {
    margin-top: 1rem;
}

.reports-list-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.report-icon {
    font-size: 1.25rem;
}

.report-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.report-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

/* Income Table */
.income-table-container {
    overflow-x: auto;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.amount-cell.income {
    color: var(--green-primary);
    font-weight: 600;
}

.empty-state-cell {
    padding: 2rem !important;
}

/* ============================================
   PLATFORM INCOME CARDS
   ============================================ */

.platform-income-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-income-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.platform-header .platform-logo {
    font-size: 1.75rem;
}

.platform-header .platform-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.platform-income-input {
    margin-bottom: 1rem;
}

.platform-income-input .input-with-prefix input {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.platform-docs {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.upload-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.upload-doc-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.platform-doc-list {
    margin-top: 0.75rem;
}

.platform-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.platform-doc-item .doc-name {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.platform-doc-item .doc-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-icon-sm {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.btn-icon-sm:hover {
    opacity: 1;
}

.btn-icon-sm.delete:hover {
    color: var(--red);
}

.platform-income-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.platform-income-total .total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-primary);
}

/* Tax Bracket Select */
.costseg-input-section .form-group {
    min-width: 200px;
}

.costseg-input-section select {
    padding: 0.75rem;
    font-size: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

/* Everlance Import Result */
.everlance-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 168, 181, 0.1);
    border-radius: var(--radius-sm);
    text-align: center;
}

.import-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.import-success .success-icon {
    font-size: 2rem;
}

.import-success p {
    color: var(--text-primary);
}

.import-instructions {
    margin-bottom: 1.5rem;
}

.import-instructions h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.import-instructions ol {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.import-instructions ol li {
    margin-bottom: 0.25rem;
}

/* Platform Income - Inputs Row */
.platform-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-input-group {
    flex: 1;
    min-width: 0;
}

.platform-input-group:first-child {
    flex: 2;
}

.platform-input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-input-group input:not([type="file"]) {
    width: 100%;
    padding: 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
}

.platform-input-group .input-with-prefix {
    width: 100%;
}

.platform-input-group .input-with-prefix input {
    width: 100%;
}

/* Platform Totals Row */
.platform-totals-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-totals-row .platform-income-total {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .platform-inputs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .platform-totals-row {
        flex-direction: column;
    }
}

/* Tax Prep - Schedule C highlights */
.schedule-line.highlight {
    background: rgba(0, 168, 181, 0.15);
    border-left: 3px solid var(--green-primary);
}

.estimate-value.savings {
    color: var(--green-primary);
}

.estimate-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.estimate-bonus {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 168, 181, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--green-primary);
}

/* ============================================
   PROPERTY COSTS PAGE
   ============================================ */

.page-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cost-input-section {
    padding: 0.5rem 0;
}

.cost-input-section .form-group {
    max-width: 400px;
}

.closing-costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.closing-costs-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-top: 1.5rem;
}

.closing-costs-total .total-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.property-costs-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.summary-card {
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.05), var(--bg-card));
    border: 1px solid rgba(0, 168, 181, 0.2);
}

/* ============================================
   EXPENSE TABLE SORTING & FILTERING
   ============================================ */

.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.sortable-header:hover {
    color: var(--green-primary);
}

.sortable-header.sorted {
    color: var(--green-primary);
}

.sort-icon {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

.sortable-header.sorted .sort-icon {
    opacity: 1;
}

.date-filter {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.date-filter::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters-bar .search-input {
    flex: 1;
    min-width: 200px;
}

.filters-bar select {
    min-width: 150px;
}

/* ============================================
   DASHBOARD STAT CARDS - 5 COLUMN
   ============================================ */

.stats-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DASHBOARD STAT CARDS - 9 CARD GRID
   ============================================ */

.stats-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .stats-grid-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid-dashboard {
        grid-template-columns: 1fr;
    }
}

.stat-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    border-color: var(--green-primary);
    box-shadow: 0 4px 12px rgba(0, 168, 181, 0.15);
}

.stat-card.income {
    border-left: 3px solid var(--teal-bright);
}
.stat-card.income:hover {
    border-color: var(--teal-bright);
    box-shadow: 0 4px 12px rgba(0, 168, 181, 0.15);
}

.stat-card.expenses {
    border-left: 3px solid var(--coral);
}
.stat-card.expenses:hover {
    border-color: var(--coral);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.stat-card.property-costs {
    border-left: 3px solid var(--purple-soft);
}

.stat-card.property-costs:hover {
    border-color: var(--purple-soft);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.stat-card.mileage {
    border-left: 3px solid var(--amber);
}
.stat-card.mileage:hover {
    border-color: var(--amber);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.stat-card.employee-wages {
    border-left: 3px solid #f472b6;
}
.stat-card.employee-wages:hover {
    border-color: #f472b6;
    box-shadow: 0 4px 12px rgba(244, 114, 182, 0.15);
}
.stat-card.employee-wages .stat-value { color: #f472b6; }

.stat-card.depreciation {
    border-left: 3px solid var(--amber);
}
.stat-card.depreciation:hover {
    border-color: var(--amber);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.stat-card.depreciation .stat-value { color: var(--amber); }

.stat-card.home-office {
    border-left: 3px solid #34d399;
}
.stat-card.home-office:hover {
    border-color: #34d399;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.15);
}
.stat-card.home-office .stat-value { color: #34d399; }

.stat-card.cost-seg {
    border-left: 3px solid var(--purple);
}
.stat-card.cost-seg:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.stat-card.cost-seg .stat-value { color: var(--purple); }

.stat-card.profit {
    border-left: 3px solid var(--teal-glow);
}
.stat-card.profit.negative {
    border-left-color: var(--coral);
}

/* ============================================
   DASHBOARD STAT CARDS - 6 COLUMN
   ============================================ */

.stats-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

@media (max-width: 1400px) {
    .stats-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid-6 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DASHBOARD YEAR TOGGLE
   ============================================ */

.page-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.year-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.year-btn {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.year-btn:hover {
    color: #334155;
}

.year-btn.active {
    background: white;
    color: var(--teal-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ============================================
   ACTIVE HOURS DASHBOARD CARD
   ============================================ */

.stat-card.active-hours {
    border-left: 3px solid var(--purple);
}

.stat-card.active-hours.qualified {
    border-left: 3px solid var(--teal-primary);
}

.stat-card.active-hours:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.stat-card.active-hours.qualified:hover {
    border-color: var(--teal-primary);
    box-shadow: 0 4px 12px rgba(0, 168, 181, 0.15);
}

.active-hours-mini {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.active-hours-mini .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-card.active-hours.qualified .active-hours-mini .stat-value {
    color: var(--teal-primary);
}

.active-hours-mini .checkmark {
    color: var(--teal-primary);
    font-size: 1.25rem;
}

.active-hours-mini .progress-mini {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   YEAR GOAL CARDS (Active Hour Tracker)
   ============================================ */

.year-goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
    .year-goals-grid {
        grid-template-columns: 1fr;
    }
}

.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.goal-card.qualified {
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.1) 0%, rgba(0, 168, 181, 0.2) 100%);
    border-color: var(--teal-primary);
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.goal-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-purpose {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.goal-card.qualified .goal-purpose {
    background: var(--teal-primary);
    color: white;
}

/* Circular Progress Charts */
.circle-progress-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
}

.circle-progress {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.circle-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292; /* 2 * PI * 54 */
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.8s ease-out;
}

.goal-card.qualified .circle-fill {
    stroke: var(--teal-primary);
}

.circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    transition: all 0.3s;
}

.goal-card.qualified .circle-center {
    background: var(--teal-primary);
}

.circle-hours {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.goal-card.qualified .circle-hours {
    color: white;
}

.circle-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.goal-card.qualified .circle-label {
    color: rgba(255,255,255,0.8);
}

/* Legacy Bullseye Target (backwards compat) */
.goal-bullseye {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.bullseye-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--border-color);
}

.bullseye-ring.outer {
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
}

.bullseye-ring.middle {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
}

.bullseye-ring.inner {
    width: 40px;
    height: 40px;
    top: 40px;
    left: 40px;
}

.goal-card.qualified .bullseye-ring {
    border-color: #86efac;
}

.bullseye-center {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 25px;
    left: 25px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.goal-card.qualified .bullseye-center {
    background: var(--teal-primary);
}

.bullseye-hours {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.goal-card.qualified .bullseye-hours {
    color: white;
}

.bullseye-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.goal-card.qualified .bullseye-label {
    color: rgba(255,255,255,0.8);
}

/* Progress Bar */
.goal-progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.goal-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--purple-soft));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.goal-card.qualified .goal-progress-bar .progress-fill {
    background: var(--teal-primary);
}

.goal-status .status-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.goal-card.qualified .goal-status .status-text {
    color: var(--teal-primary);
    font-weight: 600;
}

.qualification-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

/* Legacy thermometer (keeping for backwards compat) */
.hours-thermometer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.thermometer-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.thermometer-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--purple-soft));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.thermometer-fill.on-track {
    background: linear-gradient(90deg, var(--teal-primary), var(--green-secondary));
}

.hours-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.qualified-checkmark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qualified-checkmark .checkmark {
    font-size: 1.5rem;
}

.qualified-checkmark .qualified-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-primary);
}

/* ============================================
   ANNUAL HOURS INPUT (Clockify Import)
   ============================================ */

.annual-hours-card {
    background: var(--bg-card);
    border: 1px solid var(--green-primary);
    border-left: 3px solid var(--green-primary);
}

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

.annual-hours-card .card-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.annual-hours-input-section {
    padding: 0.5rem 0;
}

.annual-hours-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.annual-hours-row .form-group {
    margin-bottom: 0;
}

.annual-hours-row .form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.annual-hours-main {
    flex: 1;
    max-width: 200px;
}

.annual-hours-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 100px;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.input-with-suffix input {
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    width: 100%;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.input-with-suffix .input-suffix {
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.annual-hours-input-section .form-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .annual-hours-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .annual-hours-main {
        max-width: none;
    }
}

/* ============================================
   EXPENSES PAGE - YEAR COMPARISON
   ============================================ */

.year-comparison {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.year-stat {
    flex: 1;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.year-stat.current {
    border-left: 3px solid var(--green-primary);
}

.year-stat.previous {
    border-left: 3px solid var(--text-muted);
}

.year-stat.change {
    border-left: 3px solid var(--blue);
}

.year-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.year-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.year-value.positive {
    color: var(--green-primary);
}

.year-value.negative {
    color: var(--red);
}

.year-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.expense-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .year-comparison {
        flex-direction: column;
    }
    
    .expense-overview-grid {
        grid-template-columns: 1fr;
    }
}

.empty-text {
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
}

/* Dashboard inline header actions */
.header-actions-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-actions-inline .tax-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* ============================================
   HERO ACTIVE HOURS CARD (Dashboard)
   ============================================ */

.hero-active-hours {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a2a1a 100%);
    border: 2px solid var(--green-primary);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-active-hours:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 168, 181, 0.2);
    border-color: var(--green-light);
}

.hero-active-hours.qualified {
    background: linear-gradient(135deg, #042f2e 0%, #0e4a4f 100%);
    border-color: var(--green-light);
}

.hero-active-hours-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Hero Progress Ring */
.hero-progress-ring {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.hero-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.hero-progress-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 12;
}

.hero-progress-fill {
    fill: none;
    stroke: url(#heroGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534.07;
    stroke-dashoffset: 534.07;
    transition: stroke-dashoffset 1s ease-out;
}

.hero-active-hours.qualified .hero-progress-fill {
    stroke: var(--green-light);
}

.hero-progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-hours {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    display: block;
}

.hero-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-active-hours.qualified .hero-hours {
    color: var(--green-light);
}

.hero-active-hours.qualified .hero-label {
    color: var(--green-primary);
}

/* Hero Info Section */
.hero-active-hours-info {
    flex: 1;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-active-hours.qualified .hero-title::after {
    content: ' ✓';
    color: var(--green-light);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.hero-active-hours.qualified .hero-subtitle {
    color: var(--green-primary);
    font-weight: 500;
}

/* Hero Progress Bar */
.hero-progress-bar {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.hero-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--green-primary));
    border-radius: 6px;
    transition: width 0.8s ease-out;
    width: 0%;
}

.hero-active-hours.qualified .hero-progress-bar-fill {
    background: linear-gradient(90deg, var(--green-primary), var(--green-light));
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.hero-stat {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-stat-percent {
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-primary);
}

.hero-active-hours.qualified .hero-stat-percent {
    color: var(--green-light);
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--green-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}

.hero-active-hours:hover .hero-cta {
    background: var(--green-light);
}

.hero-active-hours.qualified .hero-cta {
    background: var(--green-light);
    color: #042f2e;
}

.hero-cta-icon {
    font-size: 1.1rem;
}

/* Celebration Effects - Disabled (no emojis) */
.hero-celebration {
    display: none;
}

/* Stats Grid 5 columns */
.stats-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
    .hero-active-hours-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-progress-ring {
        width: 140px;
        height: 140px;
    }
    
    .hero-hours {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   EXPORT DROPDOWN & OPTIONS
   ============================================ */

.export-dropdown {
    position: relative;
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    min-width: 200px;
    margin-top: 4px;
}

.export-dropdown:hover .export-menu,
.export-menu:hover {
    display: block;
}

.export-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.export-option:hover {
    background: var(--bg-tertiary);
}

.export-option:first-child {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.export-option:last-child {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* STR Resource Banner */
.info-banner.str-resource {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border: 1px solid var(--info-blue);
    border-left: 3px solid var(--info-blue);
}

.info-banner.str-resource a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.info-banner.str-resource a:hover {
    text-decoration: underline;
}

/* Timer Property Select */
.timer-select.timer-property {
    min-width: 150px;
    background: var(--bg-tertiary);
}

/* ============================================
   PHOTO EVIDENCE UPLOAD
   ============================================ */

.photo-upload-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.photo-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    transition: all 0.2s;
}

.photo-upload-area:hover,
.photo-upload-area.drag-over {
    border-color: var(--green-primary);
    background: rgba(0, 168, 181, 0.05);
}

.photo-upload-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem;
}

.upload-icon {
    font-size: 2rem;
}

.upload-text {
    font-weight: 500;
    color: var(--text-primary);
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.photo-previews:empty {
    display: none;
}

.photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Row 3 columns */
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   EVIDENCE REVIEW SECTION
   ============================================ */

.evidence-review-card {
    background: var(--bg-card);
}

.evidence-stats {
    display: flex;
    gap: 1.5rem;
}

.evidence-stat {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    min-height: 150px;
}

.evidence-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
    text-align: center;
}

.evidence-empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.evidence-empty-state p {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.evidence-empty-state span {
    font-size: 0.85rem;
}

.evidence-thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.evidence-thumbnail:hover {
    transform: scale(1.05);
}

.evidence-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-size: 0.7rem;
}

.evidence-tips {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.evidence-tips h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.tip-item .tip-icon {
    font-size: 1rem;
}

/* ============================================
   PROPERTY HOURS BREAKDOWN
   ============================================ */

.property-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.property-hours-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-hours-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.property-hours-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.property-hours-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-primary);
}

/* ============================================
   PHOTO VIEWER MODAL
   ============================================ */

.modal-fullscreen {
    max-width: 90vw;
    max-height: 90vh;
}

.photo-viewer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.photo-viewer-content img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.photo-viewer-meta {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.photo-viewer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

#photoCounter {
    color: var(--text-muted);
}

/* ============================================
   EXPORT PREVIEW MODAL
   ============================================ */

.export-preview-content {
    padding: 1rem;
}

.export-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .export-options {
        grid-template-columns: 1fr;
    }
}

.export-option-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.export-option-card:hover {
    border-color: var(--green-primary);
}

.export-option-card .export-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.export-option-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.export-option-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.export-includes {
    list-style: none;
    text-align: left;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.export-includes li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.export-year-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.export-year-select label {
    font-weight: 500;
}

.export-year-select select {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

/* Modal Large */
.modal-content.modal-lg {
    max-width: 700px;
}

/* Time table photo column */
#timeTable th:nth-child(7),
#timeTable td:nth-child(7) {
    width: 50px;
    text-align: center;
}

.photo-indicator {
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.photo-indicator:hover {
    opacity: 1;
}

.photo-indicator.has-photos {
    opacity: 1;
    color: var(--green-primary);
}

/* ============================================
   DASHBOARD WELCOME BAR
   ============================================ */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    border: 1px solid rgba(0, 168, 181, 0.25);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.welcome-text h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.welcome-dismiss {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: var(--text-muted) !important;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    min-width: auto !important;
    border-radius: 8px !important;
}

.welcome-dismiss:hover {
    border-color: rgba(255,255,255,0.3) !important;
    color: var(--text-secondary) !important;
}

.dashboard-welcome.hidden { display: none; }

@media (max-width: 768px) {
    .welcome-content { flex-direction: column; align-items: flex-start; }
    .welcome-actions { width: 100%; }
    .welcome-actions .btn-primary { flex: 1; }
}

/* ============================================
   EXPORT OPTIONS GRID (Reports page)
   ============================================ */
.export-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.export-card {
    background: var(--dark-card, var(--bg-secondary));
    border: 1px solid var(--dark-border, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 200ms;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    font-family: inherit;
    color: var(--text-primary);
}

.export-card:hover {
    border-color: rgba(0, 168, 181, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 24px rgba(0, 168, 181, 0.15);
}

.export-icon { color: var(--teal-primary, var(--teal-primary)); }

.export-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.export-format {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============================================
   COMING SOON BANNER (Inbox)
   ============================================ */
.coming-soon-banner {
    margin-top: 20px;
    padding: 20px 0 0;
    border-top: 1px solid var(--dark-border, rgba(255,255,255,0.08));
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(0, 168, 181, 0.15);
    color: var(--teal-bright, var(--teal-bright));
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 168, 181, 0.3);
}

.coming-soon-banner > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.coming-soon-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================
   GUIDED TOUR
   ============================================ */

.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tour-overlay.active {
    pointer-events: auto;
}

.tour-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.tour-backdrop.active {
    opacity: 1;
}

.tour-spotlight {
    position: fixed;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.tour-tooltip {
    position: fixed;
    z-index: 10000;
    background: var(--bg-primary, #0c1a2a);
    border: 1px solid rgba(0, 168, 181, 0.3);
    border-radius: 12px;
    padding: 24px;
    max-width: 360px;
    width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 168, 181, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
}

.tour-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tour-tooltip-step {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-primary);
    margin-bottom: 8px;
}

.tour-tooltip-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #e8ecf1);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tour-tooltip-body {
    font-size: 0.88rem;
    color: var(--text-muted, #8a94a6);
    line-height: 1.55;
    margin-bottom: 20px;
}

.tour-tooltip-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tour-tooltip-dots {
    display: flex;
    gap: 6px;
}

.tour-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.tour-dot.active {
    background: var(--teal-primary);
    width: 20px;
    border-radius: 4px;
}

.tour-dot.completed {
    background: rgba(0, 168, 181, 0.4);
}

.tour-btn-next {
    padding: 8px 20px;
    background: var(--teal-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.tour-btn-next:hover {
    background: var(--teal-secondary);
}

.tour-btn-skip {
    padding: 8px 12px;
    background: none;
    color: var(--text-muted, #8a94a6);
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tour-btn-skip:hover {
    color: var(--text-primary, #e8ecf1);
}

.tour-highlight {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
}

/* Welcome step — centered card, no spotlight */
.tour-tooltip.tour-welcome {
    max-width: 440px;
    text-align: center;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
}

.tour-tooltip.tour-welcome.visible {
    transform: translate(-50%, -50%);
}

.tour-welcome-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

@media (max-width: 768px) {
    .tour-tooltip {
        max-width: calc(100vw - 32px);
        padding: 20px;
    }
}

/* ============================================
   DASHBOARD QUICK STATS BAR
   ============================================ */

.quick-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.quick-stat-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.quick-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .quick-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   EXPENSE TRENDS CHART
   ============================================ */

.trend-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    padding: 0 4px;
}

.trend-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    cursor: default;
}

.trend-bar {
    width: 100%;
    max-width: 36px;
    background: linear-gradient(180deg, var(--teal-primary), var(--teal-bright));
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    min-height: 2px;
}

.trend-bar-wrap:hover .trend-bar {
    background: var(--teal-bright);
}

.trend-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============================================
   RECEIPT LIGHTBOX INDICATOR
   ============================================ */

.receipt-indicator.has-receipt {
    cursor: pointer;
    color: var(--teal-primary);
    transition: color 0.2s;
}

.receipt-indicator.has-receipt:hover {
    color: var(--teal-bright);
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 768px) {
    .page-header {
        gap: 8px;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .header-actions .btn {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .stats-grid.small {
        grid-template-columns: repeat(2, 1fr);
    }

    .year-toggle {
        flex-wrap: wrap;
    }

    .trend-chart-bars {
        height: 80px;
    }

    .trend-label {
        font-size: 0.55rem;
    }
}

/* Google Places Autocomplete dropdown — must sit above modals */
.pac-container {
    z-index: 10000 !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-family: 'Inter', sans-serif;
}

.pac-item {
    padding: 8px 12px;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 14px;
}

.pac-item:first-child {
    border-top: none;
}

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

.pac-item-query {
    color: var(--text-primary);
    font-weight: 500;
}

.pac-matched {
    color: var(--teal-primary);
    font-weight: 600;
}

.pac-icon {
    display: none;
}
