/* =========================
   ROOT THEME (LIGHT SAAS)
========================= */
:root {
    /* Backgrounds */
    --bg: #f1f5f9;
    --panel: #ffffff;
    --panel-2: #f8fafc;

    /* Borders */
    --border: #e2e8f0;

    /* Text */
    --text: #0f172a;
    --text-muted: #64748b;

    /* Accent */
    --primary: #2563eb;

    /* Status */
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);

    /* IMPORTANT FIX */
    min-height: 100vh;
    overflow: hidden;
}

/* =========================
   APP LAYOUT (FIXED)
========================= */
.app {
    display: flex;
    flex-direction: column; /* KEY FIX: topbar sits above sidebar/content */
    height: 100vh;
}

/* =========================
   TOPBAR (FULL WIDTH)
========================= */
.topbar {
    height: 60px;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    flex-shrink: 0;
}

.topbar .right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: 0.2s;
}

.icon:hover {
    background: var(--panel-2);
    color: var(--text);
}

/* =========================
   TOPBAR FIXES
========================= */

.topbar {
    height: 60px;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1000;
}

.topbar .title {
    font-weight: 600;
    font-size: 14px;
}

/* ICON WRAPPER MUST BE RELATIVE */
.icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    position: relative;
}

/* DROPDOWN POSITION FIX */
.notification-icon,
.user-icon {
    position: relative;
}

/* =========================
   BODY BELOW TOPBAR
========================= */
.main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* =========================
   SIDEBAR (NOW UNDER TOPBAR)
========================= */
.sidebar {
    width: 260px;
    background: var(--panel);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--border);

    /* IMPORTANT */
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.08em;
}

.sidebar a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: var(--panel-2);
    color: var(--text);
}

.sidebar a.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}

/* =========================
   CONTENT AREA
========================= */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Scrollbar */
.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top:inherit;
}

/* =========================
   CARDS
========================= */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    transition: 0.2s;
}

/*.card:hover {
    background: var(--panel-2);
    transform: translateY(-2px);
}*/

.card h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

.card p {
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom:inherit;
}

/* =========================
   TO-DO / ACTIVITY
========================= */
.todo {
    margin-top: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
}

.todo h3 {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text);
}

.todo-item {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.todo-item:last-child {
    border-bottom: none;
}

/* =========================
   BUTTON
========================= */
.btn {
    background: var(--primary);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

/* =========================
   MOBILE MENU
========================= */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    body {
        overflow: auto;
    }

    .menu-btn {
        display: block;
    }

    .main {
        position: relative;
    }

    .sidebar {
        position: absolute;
        left: -260px;
        top: 0;
        height: 100%;
        transition: 0.25s;
        z-index: 1000;
    }

    .sidebar.open {
        left: 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 18px;
    }
}

/* =========================
   NOTIFICATIONS PAGE
========================= */

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.page-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Notification item */
.notification {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    transition: 0.2s;
}

.notification:hover {
    background: var(--panel-2);
}

/* unread state */
.notification.unread {
    border-left: 4px solid var(--primary);
    background: #f0f6ff;
}

/* text */
.notification .text {
    flex: 1;
}

.notification .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification .message {
    font-size: 13px;
    color: var(--text-muted);
}

/* time */
.notification .time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* actions */
.notification .actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification a {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}

.notification a:hover {
    text-decoration: underline;
}

/* =========================
   NOTIFICATION DROPDOWN
========================= */

.notification-icon {
    position: relative;
}

.notif-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: red;
    color: white;
    font-size: 11px;
    font-weight: bold;

    position: absolute;
    top: 0px;
    right: 0px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-dropdown {
    position: absolute;
    right: 20px;
    top: 60px;
    width: 320px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    z-index: 999;
}

.notif-dropdown.hidden {
    display: none;
}

.notif-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.notif-item:hover {
    background: var(--panel-2);
}

.notif-item small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.view-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.notif-dropdown {
    transition: 0.15s ease;
    transform-origin: top right;
}

.notif-dropdown.hidden {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

.notification-icon {
    position: relative;
    cursor: pointer;
}

.notif-dropdown {
    position: absolute;
    right: 0;
    top: 35px;
    width: 280px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.notif-item:hover {
    background: #f5f5f5;
}

.hidden {
    display: none;
}

/* HIGH PRIORITY */
.notification.high-priority {
  
    background: #fff5f5;
}

/* TYPE BADGE */
.type-badge {
    font-size: 10px;
    background: #eee;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 8px;
    color: #555;
    text-transform: uppercase;
}

/* DROPDOWN HIGH PRIORITY */
.notif-item.high {
    border-left: 3px solid red;
}

.small-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    width: 100%;
    text-align: left;
}

.small-btn-normal {
    background: transparent;
    border: none;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    width: 100%;
    text-align: left;
} 
.small-btn:hover {
    background: #f2f2f2;
    color: #000;
}
.small-btn-normal:hover {
    background: #f2f2f2;
    color: #000;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;

    padding: 10px 14px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    display: inline-block;
    margin-bottom: 15px;

    transition: 0.2s ease;
}

.btn-primary:hover {
    background: #1e4fd1;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0px);
}
.small-btn::before {
    content: "✓";
    margin-right: 6px;
    font-size: 11px;
}

.btn-primary::before {
    content: "✔";
    margin-right: 8px;
}

.btn-primary-normal {
    background: #2563eb;
    color: white;
    border: none;

   
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    display: inline-block;
/*  margin-bottom: 15px;*/
 padding: 10px 14px;
    transition: 0.2s ease;
}

.btn-primary-normal:hover {
    background: #1e4fd1;
    transform: translateY(-1px);
}

.btn-primary-normal:active {
    transform: translateY(0px);
}

/* unread high priority overrides everything */
.notification.unread.high-priority {
    border-left: 4px solid red;
    background: #fff5f5;
}

.notif-empty {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.todo-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.todo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.todo-count {
    font-size: 12px;
    background: #f1f5ff;
    color: #2f5cff;
    padding: 4px 8px;
    border-radius: 999px;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border-left: 4px solid transparent;
    background: #fafafa;
}

.todo-item:hover {
    background: #f3f6ff;
}

/* TYPE COLOURS */
.todo-item.invoice {
    border-left-color: red;
}

.todo-item.document {
    border-left-color: orange;
}

.todo-item.application {
    border-left-color: var(--primary);
}

.todo-type {
    font-size: 11px;
    opacity: 0.6;
}
.todo-empty {
    padding: 14px;
    text-align: center;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
}

.user-dropdown {
    width: 260px;
    padding: 0;
    overflow: hidden;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #f7f9ff;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-email {
    font-size: 12px;
    opacity: 0.6;
}

.user-meta {
    padding: 10px 14px;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

.meta-label {
    display: block;
    opacity: 0.6;
}

.meta-value {
    font-weight: 500;
}

.user-actions {
    display: flex;
    flex-direction: column;
}

.user-actions .notif-item {
    padding: 10px 14px;
    border-radius: 0;
}

.user-actions .notif-item:hover {
    background: #f3f6ff;
}

.user-actions .danger {
    color: #d93025;
}

.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-card {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}

.invoice-card.overdue {
    border-left: 4px solid #d93025;
    background: #fff5f5;
}

.invoice-meta {
    font-size: 13px;
    opacity: 0.7;
}

.invoice-id {
    font-size: 12px;
    opacity: 0.5;
}

.invoice-amount {
    font-size: 18px;
    font-weight: 600;
}

.invoice-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 6px 0;
}

.invoice-status.not\ paid {
    background: #fff3cd;
    color: #856404;
}

.invoice-status.paid {
    background: #d4edda;
    color: #155724;
}

.paid-label {
    font-size: 12px;
    color: #28a745;
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: #888;
}
.invoice-card.cancelled {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    opacity: 0.8;
}
.invoice-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 180px;
}

.invoice-amount {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.invoice-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* ACTION GROUP */
.invoice-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

/* LINKS */
.invoice-link {
    font-size: 13px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

.invoice-link:hover {
    text-decoration: underline;
}

/* SECONDARY LINK (PDF) */
.invoice-link.secondary {
    color: #666;
}

.invoice-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =========================
   AUTH PAGES (LOGIN / REGISTER)
========================= */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg);
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    margin-bottom: 16px;
}

.auth-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.password-wrap {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-muted);
}

.auth-footer {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-message {
            font-size: 13px;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 12px;
        }

        .error {
            background: rgba(239, 68, 68, 0.08);
            color: var(--danger);
        }

        .success {
            background: rgba(22, 163, 74, 0.08);
            color: var(--success);
        }
        
        
/* =========================
  DOCUMENT PAGE
========================= */

.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* FIX */
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

/* STATUS COLOURS */
.document-card.expired {
    border-left: 4px solid #d93025;
    background: #fff5f5;
}

.document-card.missing {
    border-left: 4px solid #fbbc05;
    background: #fff8e6;
}

.document-card.valid {
    border-left: 4px solid #34a853;
    background: #f3fbf4;
}

.document-card.exempt {
    border-left: 4px solid #999;
    background: #f5f5f5;
}

/* RIGHT SIDE FIX */
.document-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 140px;
    flex-shrink: 0; /* IMPORTANT FIX */
}

/* STATUS BADGES */
.doc-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
}

.doc-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.doc-status.missing {
    background: #fff3cd;
    color: #856404;
}

.doc-status.valid {
    background: #d4edda;
    color: #155724;
}

.doc-status.exempt {
    background: #eee;
    color: #666;
}

/* LINKS */
.doc-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.doc-link.secondary {
    color: #666;
}

.doc-link.muted {
    color: #888;
    font-size: 12px;
}

.doc-link.warning {
    color: #d9534f;
    font-size: 12px;
}

/* COMPLIANCE BAR */
.compliance-wrapper {
    margin-bottom: 20px;
}

.compliance-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.compliance-bar {
    width: 100%;
    max-width: 400px;
    height: 14px;
    background: #e6e8ee;
    border-radius: 20px;
    overflow: hidden;
}

.compliance-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.compliance-fill.low {
    background: #e74c3c;
}

.compliance-fill.medium {
    background: #f39c12;
}

.compliance-fill.high {
    background: #2ecc71;
}

/* =========================
   INLINE UPLOAD FORM
========================= */
.inline-upload-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
   
    padding: 5px;
    border-radius: 8px;
}

/* FILE INPUT */
.inline-upload-form input[type="file"] {
    font-size: 12px;
    max-width: 160px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

/* DATE INPUT */
.inline-upload-form input[type="date"] {
    font-size: 12px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.button-style {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s ease;
}

.button-colour {
    background: white;
}

/* BUTTONS */
.inline-upload-form button {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s ease;
}

/* PRIMARY */
.inline-upload-form .btn-upload {
    background: #2d7ff9;
    color: #fff;
}

.inline-upload-form .btn-upload:hover {
    background: #1f6be0;
}

/* SECONDARY */
.inline-upload-form .btn-muted {
    background: #f1f1f1;
    color: #555;
}

.inline-upload-form .btn-muted:hover {
    background: #e5e5e5;
}

/* VIEW LINK SPACING */
.document-right a.doc-link {
    margin-right: 6px;
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 600px) {

    .document-card {
        flex-direction: column;
    }

    .document-right {
        width: 100%;
        align-items: flex-start;
    }

    .inline-upload-form {
        width: 100%;
        justify-content: flex-start;
    }

    .inline-upload-form input[type="file"],
    .inline-upload-form input[type="date"],
    .inline-upload-form button {
        width: 100%;
    }

    .inline-upload-form input[type="file"] {
        max-width: 100%;
    }

}

.doc-warning {
    background: #fff4e5;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin: 10px 0;
    line-height: 1.4;
}

/* =========================
   ACCOUNT PAGE LAYOUT
========================= */

.account-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Section headers inside cards */
.card h2 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

/* Form layout spacing */
.card form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Labels (slightly improved from default) */
.card label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-wrap-mode: nowrap;
}

/* Inputs aligned with your theme */
.card input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.card input:focus {
    border-color: var(--primary);
}

/* Button inside account forms */
.card button {
    margin-top: 12px;
}

.card textarea {
    width: 100%;
    min-height: 180px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    resize: vertical;
    font-family: inherit;
}

.card textarea:focus {
    border-color: var(--primary);
}

.card select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: 0.2s;

    /* IMPORTANT: makes dropdown visually consistent */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.card select:focus {
    border-color: var(--primary);
}

.card select {
    cursor: pointer;
}

/* Status messages */
.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

/* Account page title consistency */
.content h1 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text);
}

.menu-card {
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    background: var(--panel);
    margin-bottom: 10px;
}

.menu-grid {
    display: grid;
    gap: 8px;
}

.menu-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.badge {
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 11px;
    background: rgba(255,255,255,0.05);
}


/* =========================
   BASE TIMELINE (VERTICAL)
========================= */
.timeline {
    position: relative;
    margin-top: 10px;
    padding-left: 22px;
}

.timeline-item {
    position: relative;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(6px);
    animation: fadeInUp 0.4s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.10s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.20s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* dot line (vertical) */
.timeline-dot {
    position: absolute;
    left: -15px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #fff;
}

/* legacy support (optional if still used anywhere else) */
.timeline-item.rejected .timeline-dot {
    background: #f44336;
}

.timeline-item.pending {
    opacity: 0.5;
}

/* =========================
   HORIZONTAL TIMELINE
========================= */
.timeline-horizontal {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 10px 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 90px;
    position: relative;
}

/* =========================
   DOT STATES (MAIN SYSTEM)
========================= */

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 8px;
    background: #cbd5e1;
    position: static;
}

/* completed past steps */
.timeline-dot.dot-done {
    background: #60a5fa;
}

/* current active step */
.timeline-dot.dot-current {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* negative / final failure states */
.timeline-dot.dot-error {
    background: #ef4444;
}

/* =========================
   CONTENT
========================= */
.timeline-content {
    font-size: 13px;
}

.timeline-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* fallback spacing (optional safety) */
.timeline-step .timeline-dot {
    margin-bottom: 6px;
}

.offer-btn {
    padding:10px 14px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:600;
}

.accept-btn {
    background:#22c55e;
    color:#fff;
}

.reject-btn {
    background:#ef4444;
    color:#fff;
}