/* ── Base ──────────────────────────────────────────────────────────── */
h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

/* ── Login page — Quarter Real Estate public-facing look ───────────── */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    padding: 24px;
}
.login-card {
    width: 100% !important;
    max-width: 440px !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(26,39,66,.14) !important;
}

/* ── AppBar native BT select ───────────────────────────────────────── */
.bt-native-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e2e8f0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 6px center;
    background-size: 12px 8px;
    border: none;
    border-bottom: 1px solid rgba(226,232,240,0.25);
    color: #e2e8f0;
    font-size: .9rem;
    font-family: inherit;
    font-weight: 500;
    min-width: 140px;
    padding: 4px 28px 4px 4px;
    cursor: pointer;
    outline: none;
}
.bt-native-select:focus { border-bottom-color: rgba(226,232,240,0.6); }
.bt-native-select option { background: #1a1d2e; color: #e2e8f0; }

/* ── AppBar: override dark theme — all text/inputs must be light ────── */
/* Sets the MudBlazor CSS variable used by appbar descendants */
header.ulgs-topbar {
    --mud-palette-text-primary: #e2e8f0 !important;
    --mud-palette-text-secondary: #cbd5e1 !important;
    color: #e2e8f0 !important;
}
/* Target every possible MudSelect/MudInput rendered element inside the AppBar */
header.ulgs-topbar .mud-select-input,
header.ulgs-topbar .mud-input-slot,
header.ulgs-topbar .mud-input,
header.ulgs-topbar .mud-input-text,
header.ulgs-topbar .mud-input-root,
header.ulgs-topbar .mud-input-root-text,
header.ulgs-topbar .mud-input-control,
header.ulgs-topbar .mud-text-field-label,
header.ulgs-topbar .mud-input-label,
header.ulgs-topbar .mud-typography,
header.ulgs-topbar span,
header.ulgs-topbar div,
header.ulgs-topbar label {
    color: #e2e8f0 !important;
}
/* Dropdown chevron/arrow icons */
header.ulgs-topbar .mud-input-adornment svg,
header.ulgs-topbar .mud-input-adornment .mud-icon-root {
    color: #94a3b8 !important;
    fill: #94a3b8 !important;
}
/* Placeholder and underline */
header.ulgs-topbar input::placeholder { color: #94a3b8 !important; opacity: 1 !important; }
header.ulgs-topbar .mud-input-underline:before,
header.ulgs-topbar .mud-input-underline:after { border-bottom-color: rgba(226,232,240,0.25) !important; }



/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ── Stat Cards ─────────────────────────────────────────────────────── */
.stat-card {
    border-radius: 12px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12) !important; }
.stat-card-primary   { background: linear-gradient(135deg,#1976d2 0%,#1565c0 100%) !important; color:#fff; }
.stat-card-danger    { background: linear-gradient(135deg,#ef4444 0%,#dc2626 100%) !important; color:#fff; }
.stat-card-success   { background: linear-gradient(135deg,#1e7e34 0%,#28a745 100%) !important; color:#fff; }
.stat-card-warning   { background: linear-gradient(135deg,#e67e00 0%,#f39c12 100%) !important; color:#fff; }
.stat-card-info      { background: linear-gradient(135deg,#0c6694 0%,#17a2b8 100%) !important; color:#fff; }
.stat-card-purple    { background: linear-gradient(135deg,#5b21b6 0%,#7c3aed 100%) !important; color:#fff; }
.stat-card-secondary { background: linear-gradient(135deg,#475569 0%,#64748b 100%) !important; color:#fff; }
.stat-value { font-size: 2.2rem; font-weight: 800; line-height: 1; color: #fff !important; letter-spacing: -.01em; }
.stat-label { font-size: .95rem; font-weight: 500; opacity: 1; margin-top: 6px; color: rgba(255,255,255,.92) !important; text-transform: none !important; letter-spacing: normal !important; }
.stat-icon  { position:absolute; right:16px; top:50%; transform:translateY(-50%); opacity:.15; font-size:4rem !important; color: #fff !important; }
.stat-trend { font-size:.8rem; margin-top:8px; color: rgba(255,255,255,.85) !important; }
.stat-card div, .stat-card span, .stat-card .mud-typography { color: #fff !important; }

/* ── Page Header ────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(25,118,210,.15);
}
.page-header-left h5 { margin:0; font-weight:700; color:#1e293b; }
.page-header-left p  { margin:0; color:#666; font-size:.85rem; }

/* ── Section Card ───────────────────────────────────────────────────── */
.section-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .15s;
}
.section-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08) !important; }
.section-header {
    background: linear-gradient(90deg,#1976d2 0%,#1565c0 100%) !important;
    color: #fff !important;
    padding: 14px 20px;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing:.3px;
}

/* ── Kanban ─────────────────────────────────────────────────────────── */
.kanban-board { display:flex; gap:16px; overflow-x:auto; padding-bottom:8px; }
.kanban-col   { min-width:240px; max-width:260px; flex-shrink:0; }
.kanban-col-header {
    padding: 10px 14px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.kanban-col-body { background:#f8f9fb; border-radius:0 0 8px 8px; min-height:300px; padding:8px; }
.kanban-card {
    background:#fff;
    border-radius:8px;
    padding:12px;
    margin-bottom:8px;
    border-left:4px solid #1976d2;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
    cursor:pointer;
    transition:transform .12s, box-shadow .12s;
}
.kanban-card:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(25,118,210,.15); }
.kanban-card-name { font-weight:600; font-size:.85rem; color:#1e293b; }
.kanban-card-meta { font-size:.75rem; color:#888; margin-top:3px; }
.k-new       { background:#e3f2fd; border-color:#1565c0; }
.k-contacted { background:#fff3e0; border-color:#e65100; }
.k-qualified { background:#f3e5f5; border-color:#6a1b9a; }
.k-proposal  { background:#e8f5e9; border-color:#2e7d32; }
.k-closed    { background:#e8f5e9; border-color:#1b5e20; }

/* ── Quick Action Cards ─────────────────────────────────────────────── */
.quick-action {
    border-radius:10px;
    padding:16px;
    display:flex;
    align-items:center;
    gap:14px;
    cursor:pointer;
    transition:transform .12s, box-shadow .12s;
    border:1px solid rgba(0,0,0,.06);
    background:#fff;
}
.quick-action:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.1); }
.quick-action-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.quick-action-title { font-weight:600; font-size:.85rem; color:#1e293b; }
.quick-action-sub   { font-size:.75rem; color:#888; }

/* ── Timeline ───────────────────────────────────────────────────────── */
.timeline-item { display:flex; gap:12px; padding:8px 0; border-bottom:1px solid #f0f0f0; }
.timeline-dot  { width:10px; height:10px; border-radius:50%; margin-top:5px; flex-shrink:0; }
.timeline-content p { margin:0; font-size:.82rem; color:#333; }
.timeline-content span { font-size:.72rem; color:#999; }

/* ── Login page ─────────────────────────────────────────────────────── */
.login-bg {
    min-height:100vh;
    background: linear-gradient(135deg,#1a1d2e 0%,#0d47a1 50%,#1976d2 100%);
    display:flex;
    align-items:center;
    justify-content:center;
}
.login-card { border-radius:16px; overflow:hidden; max-width:420px; width:100%; }
.login-logo { font-size:2rem; font-weight:800; letter-spacing:-1px; }

/* ── Profile card ───────────────────────────────────────────────────── */
.profile-card { border-radius:12px; overflow:hidden; transition:box-shadow .15s; cursor:pointer; }
.profile-card:hover { box-shadow:0 8px 24px rgba(0,0,0,.13) !important; }
.profile-banner { height:80px; background:linear-gradient(135deg,#1976d2,#0288d1); }
.profile-avatar { margin-top:-30px; margin-left:16px; border:3px solid #fff; border-radius:50%; }

/* ── Status badges ──────────────────────────────────────────────────── */
.badge-hot    { background:#fee2e2; color:#b91c1c; padding:2px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }
.badge-warm   { background:#fef3c7; color:#92400e; padding:2px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }
.badge-cold   { background:#dbeafe; color:#1e40af; padding:2px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }
.badge-closed { background:#dcfce7; color:#166534; padding:2px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }

/* ── Charts placeholder ───────────────────────────────────�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      