/* ── PORTAL GLOBAL STYLES ──────────────────────────────────────────────── */
:root {
    --sidebar-width: 240px;
    --sidebar-bg: #0f172a;
    --primary: #1d4ed8;
    --primary-light: #dbeafe;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f8fafc; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: sticky;
    top: 0;
}
.sidebar .nav-link { border-radius: 8px; font-size: 14px; padding: 8px 12px; transition: background .15s; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); }
.sidebar .nav-link.active { background: var(--primary) !important; }

/* Avatar circle */
.avatar-circle {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; text-transform: uppercase; flex-shrink: 0;
}

/* Cards */
.stat-card { border: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .2s; }
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* Badge status */
.badge-draft     { background: #f1f5f9; color: #475569; }
.badge-sent      { background: #dbeafe; color: #1d4ed8; }
.badge-followup  { background: #fef9c3; color: #a16207; }
.badge-accepted  { background: #dcfce7; color: #15803d; }
.badge-rejected  { background: #fee2e2; color: #b91c1c; }
.badge-expired   { background: #f3f4f6; color: #6b7280; }

/* Tables */
.table-portal { font-size: 14px; }
.table-portal th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; border-bottom: 2px solid #e2e8f0; }
.table-portal tbody tr:hover { background: #f8fafc; }

/* Quote items table */
.quote-items-table { border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }

/* Auth pages */
.auth-wrapper { min-height: 100vh; background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%); display: flex; align-items: center; justify-content: center; }
.auth-card { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.auth-logo { font-size: 28px; font-weight: 800; color: #0f172a; }
.auth-logo span { color: #1d4ed8; }

/* Dashboard follow-up dots */
.overdue-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; }
.upcoming-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; display: inline-block; }

/* Color pickers in branding */
input[type="color"] { height: 40px; padding: 4px; border-radius: 8px; }

/* Quote PDF preview frame */
.pdf-preview { border: 1px solid #e2e8f0; border-radius: 8px; height: 600px; width: 100%; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { display: none; }
}
