/* ================================================================
   DASHBOARD CORE — Complete Design System
   Dark sidebar + white content theme.
   Pair with bootstrap.min.css and bootstrap-icons.min.css ONLY.
   Do NOT load style.min.css on dashboard pages.
   ================================================================ */

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
    /* Brand blues */
    --blue-50:  #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    /* Neutral slate */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Semantic colours */
    --green-50:  #f0fdf4;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --green-700: #15803d;
    --yellow-50: #fefce8;
    --yellow-100:#fef9c3;
    --yellow-600:#ca8a04;
    --red-50:   #fff1f2;
    --red-100:  #fee2e2;
    --red-600:  #dc2626;
    --red-700:  #b91c1c;

    /* Layout */
    --sidebar-w: 260px;
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #f1f5f9;
    --sidebar-active-bg: #2563eb;
    --sidebar-border: rgba(255,255,255,.06);
    --header-h:  64px;
    --page-bg:   #f1f5f9;
    --card-bg:   #ffffff;
    --border:    #e2e8f0;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
    --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
    --shadow:    0 4px 8px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
    --shadow-md: 0 8px 16px rgba(15,23,42,.09), 0 3px 6px rgba(15,23,42,.04);
    --shadow-lg: 0 16px 32px rgba(15,23,42,.12), 0 4px 8px rgba(15,23,42,.05);
    --shadow-blue:0 4px 14px rgba(37,99,235,.30);

    /* Shape */
    --r:    0.5rem;
    --r-lg: 0.75rem;
    --r-xl: 1rem;
    --r-2xl:1.25rem;

    --transition: all .18s cubic-bezier(.4,0,.2,1);

    /* Font */
    --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;

    /* Aliases for getModernCSS() compatibility */
    --color-primary: var(--blue-600);
    --color-primary-light: var(--blue-50);
    --color-primary-dark: var(--blue-700);
    --color-secondary: var(--blue-500);
    --color-secondary-light: var(--blue-100);
    --color-secondary-dark: var(--blue-800);
    --color-success: var(--green-600);
    --color-success-light: var(--green-50);
    --color-warning: var(--yellow-600);
    --color-warning-light: var(--yellow-50);
    --color-danger: var(--red-600);
    --color-danger-light: var(--red-50);
    --color-info: #0284c7;
    --color-info-light: #e0f2fe;
    --color-neutral-50: var(--slate-50);
    --color-neutral-100: var(--slate-100);
    --color-neutral-200: var(--slate-200);
    --color-neutral-300: var(--slate-300);
    --color-neutral-400: var(--slate-400);
    --color-neutral-500: var(--slate-500);
    --color-neutral-600: var(--slate-600);
    --color-neutral-700: var(--slate-700);
    --color-neutral-800: var(--slate-800);
    --color-neutral-900: var(--slate-900);
    --bg-primary: #ffffff;
    --bg-secondary: var(--page-bg);
    --bg-accent: var(--slate-100);
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-400);
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
    --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
    --radius-sm: 0.25rem; --radius: 0.375rem; --radius-md: 0.5rem; --radius-lg: var(--r-lg); --radius-xl: var(--r-xl);
}

/* ----------------------------------------------------------------
   BASE RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--slate-700);
    background: var(--page-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: none; }

img { max-width: 100%; }

/* ----------------------------------------------------------------
   PRELOADER
   ---------------------------------------------------------------- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--sidebar-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ctn-preloader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------------------------------
   PAGE WRAPPER
   ---------------------------------------------------------------- */
.main-page-wrapper {
    min-height: 100vh;
    background: var(--page-bg);
}

/* ----------------------------------------------------------------
   SIDEBAR — Dark Slate Theme
   ---------------------------------------------------------------- */
.dash-aside-navbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 0 0 24px;
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
    font-family: var(--font);
}

/* Scrollbar */
.dash-aside-navbar::-webkit-scrollbar { width: 4px; }
.dash-aside-navbar::-webkit-scrollbar-track { background: transparent; }
.dash-aside-navbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 4px;
}

/* Logo area */
.dash-aside-navbar .plr { padding-left: 18px; padding-right: 18px; }
.dash-aside-navbar .bottom-line { border-bottom: 1px solid var(--sidebar-border); }

.dash-aside-navbar .logo img {
    filter: brightness(0) invert(1);
    max-height: 40px;
}

/* Close button (mobile) */
.dash-aside-navbar .close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}
.dash-aside-navbar .close-btn:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* Nav list */
.dash-aside-navbar .dasboard-main-nav { margin: 0; padding: 0; list-style: none; }
.dash-aside-navbar .dasboard-main-nav ul,
.dash-aside-navbar ul,
.dash-aside-navbar li { list-style: none; }
.style-none, .style-none li { list-style: none; margin: 0; padding: 0; }

.dash-aside-navbar .dasboard-main-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    margin: 1px 0;
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.01em;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.dash-aside-navbar .dasboard-main-nav li a span { flex: 1; }
.dash-aside-navbar .dasboard-main-nav li a img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: .55;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}
.dash-aside-navbar .dasboard-main-nav li a i {
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
    color: var(--slate-500);
    transition: var(--transition);
}
.dash-aside-navbar .dasboard-main-nav li a:hover {
    background: rgba(255,255,255,.08);
    color: var(--sidebar-text-hover);
}
.dash-aside-navbar .dasboard-main-nav li a:hover i,
.dash-aside-navbar .dasboard-main-nav li a:hover img { color: var(--blue-400); opacity: 1; }

.dash-aside-navbar .dasboard-main-nav li a.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-blue);
}
.dash-aside-navbar .dasboard-main-nav li a.active i { color: #fff; }
.dash-aside-navbar .dasboard-main-nav li a.active img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Section labels */
.dash-aside-navbar .dasboard-main-nav li .nav-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--slate-500);
    padding: 14px 14px 4px;
    display: block;
}

/* Logout button */
.dash-aside-navbar .logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.dash-aside-navbar .logout-btn .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.dash-aside-navbar .logout-btn:hover { color: var(--red-600); text-decoration: none; }
.dash-aside-navbar .logout-btn:hover .icon { background: var(--red-100); }

/* ----------------------------------------------------------------
   MAIN CONTENT AREA
   ---------------------------------------------------------------- */
.dashboard-body {
    margin-left: var(--sidebar-w);
    padding: calc(var(--header-h) + 32px) 36px 60px;
    min-height: 100vh;
    background: var(--page-bg);
    font-family: var(--font);
}

/* ----------------------------------------------------------------
   FIXED HEADER BAR
   ---------------------------------------------------------------- */
.dashboard-body .dashboard-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    z-index: 90;
    display: flex;
    align-items: center;
    padding: 0 28px;
}

.dashboard-body .dashboard-header > div {
    width: 100%;
    display: flex;
    align-items: center;
}

/* Page title in header */
.dashboard-body .dashboard-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -.03em;
    margin: 0;
    margin-right: auto;
}

/* Notification button */
.dashboard-body .dashboard-header .profile-notification { position: relative; }
.dashboard-body .dashboard-header .profile-notification .noti-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--slate-50);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.dashboard-body .dashboard-header .profile-notification .noti-btn::after { display: none; }
.dashboard-body .dashboard-header .profile-notification .noti-btn:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
}
.dashboard-body .dashboard-header .profile-notification .noti-btn img {
    width: 20px;
    height: 20px;
    opacity: .6;
}
.dashboard-body .dashboard-header .profile-notification .badge-pill {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-600);
    border: 2px solid #fff;
}

/* Notification dropdown */
.dashboard-body .dashboard-header .profile-notification .dropdown-menu {
    min-width: 300px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
}
.dashboard-body .dashboard-header .profile-notification .dropdown-menu h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-100);
}
.dashboard-body .dashboard-header .profile-notification .dropdown-menu .notify-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-body .dashboard-header .profile-notification .dropdown-menu .notify-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
    transition: var(--transition);
}
.dashboard-body .dashboard-header .profile-notification .dropdown-menu .notify-list li::before { display: none; }
.dashboard-body .dashboard-header .profile-notification .dropdown-menu .notify-list li:last-child { border: none; }
.dashboard-body .dashboard-header .profile-notification .dropdown-menu .notify-list li .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--slate-100);
    flex-shrink: 0;
}
.dashboard-body .dashboard-header .profile-notification .dropdown-menu .notify-list li h6 {
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-700);
    margin: 0;
}
.dashboard-body .dashboard-header .profile-notification .dropdown-menu .notify-list li.unread h6 {
    color: var(--slate-900);
    font-weight: 600;
}
.dashboard-body .dashboard-header .profile-notification .dropdown-menu .notify-list li .time {
    font-size: 11.5px;
    color: var(--slate-400);
    display: block;
    margin-top: 2px;
}

/* Add Property / Action button */
.dashboard-body .dashboard-header .job-post-btn,
.dashboard-body .dashboard-header .btn-two {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-600);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 0 18px;
    height: 38px;
    line-height: 38px;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: -.01em;
    box-shadow: var(--shadow-blue);
    cursor: pointer;
}
.dashboard-body .dashboard-header .job-post-btn:hover,
.dashboard-body .dashboard-header .btn-two:hover {
    background: var(--blue-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,.35);
    text-decoration: none;
}
.dashboard-body .dashboard-header .btn-two i { font-size: 14px; }

/* User avatar + dropdown */
.dashboard-body .dashboard-header .user-data { position: relative; }
.dashboard-body .dashboard-header .user-data .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--blue-200);
    background: var(--blue-50);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.dashboard-body .dashboard-header .user-data .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dashboard-body .dashboard-header .user-data .user-avatar::after { display: none; }
.dashboard-body .dashboard-header .user-data .user-avatar.online::before {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    z-index: 1;
}

/* User dropdown */
.dashboard-body .dashboard-header .user-data .user-name-data .dropdown-menu {
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    right: 0;
    left: auto;
}
.dashboard-body .dashboard-header .user-data .user-name-data .dropdown-menu::before { display: none; }
.dashboard-body .dashboard-header .user-data .user-name-data .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
    transition: var(--transition);
    background: transparent;
}
.dashboard-body .dashboard-header .user-data .user-name-data .dropdown-menu .dropdown-item:hover {
    background: var(--blue-50);
    color: var(--blue-700);
}
.dashboard-body .dashboard-header .user-data .user-name-data .dropdown-menu .dropdown-item img {
    width: 16px;
    opacity: .6;
}
.dashboard-body .dashboard-header .user-data .user-name-data .dropdown-menu .dropdown-item i {
    font-size: 15px;
    color: var(--slate-400);
}

/* Mobile hamburger */
.dash-mobile-nav-toggler {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    border-radius: 8px;
    transition: var(--transition);
}
.dash-mobile-nav-toggler:focus { outline: none; }
.dash-mobile-nav-toggler:hover { background: var(--slate-100); }
.dash-mobile-nav-toggler span,
.dash-mobile-nav-toggler::before,
.dash-mobile-nav-toggler::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blue-600);
    border-radius: 2px;
    transition: var(--transition);
}
.dash-mobile-nav-toggler::before,
.dash-mobile-nav-toggler::after { content: ''; }

/* Search form in header */
.dashboard-body .dashboard-header .search-form { display: none; }

/* ----------------------------------------------------------------
   CARD / BOX COMPONENTS
   ---------------------------------------------------------------- */
.dashboard-body .card-box,
.dashboard-body .border-20,
.dashboard-body .border-15,
.dashboard-body .border-30 {
    background: #fff;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.dashboard-body .card-box { padding: 24px; }
.dashboard-body .p0 { padding: 0; }
.dashboard-body .border-15 { border-radius: var(--r-lg); }
.dashboard-body .border-20 { border-radius: var(--r-xl); }
.dashboard-body .border-30 { border-radius: var(--r-2xl); }
.dashboard-body .plr { padding-left: 24px; padding-right: 24px; }

/* Generic modern card */
.card-modern {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
}
.card-modern:hover { box-shadow: var(--shadow); }

/* Content cards (dashboard-index) */
.content-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
}
.content-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.content-card-title i { color: var(--blue-600); font-size: 15px; }
.content-card-body { padding: 0; }

/* recent-job-tab compat alias */
.recent-job-tab {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ----------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------- */
.main-title,
.dashboard-body .main-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -.04em;
    margin-bottom: 8px;
}
.dash-title-two {
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -.02em;
    margin-bottom: 0;
}
.dash-title-three {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate-600);
    letter-spacing: -.01em;
    text-transform: uppercase;
}

/* Color + weight utils */
.color-dark { color: var(--slate-900); }
.fw-500 { font-weight: 500; }
.fs-16 { font-size: 16px; }
.fs-20 { font-size: 20px; }
.tran3s { transition: var(--transition); }
.m0 { margin: 0; }

/* Spacing utils */
.pt-15  { padding-top: 15px; }
.pt-20  { padding-top: 20px; }
.pt-25  { padding-top: 25px; }
.pt-30  { padding-top: 30px; }
.pt-40  { padding-top: 40px; }
.pb-20  { padding-bottom: 20px; }
.mb-20  { margin-bottom: 20px; }
.mb-25  { margin-bottom: 25px; }
.mb-30  { margin-bottom: 30px; }
.mb-40  { margin-bottom: 40px; }
.mt-20  { margin-top: 20px; }
.mt-30  { margin-top: 30px; }
.plr-30 { padding-left: 30px; padding-right: 30px; }
.lg-pt-10 { padding-top: 10px; }

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */

/* Primary action */
.btn-two,
.dashboard-body .btn-two {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-600);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-blue);
}
.btn-two:hover,
.dashboard-body .btn-two:hover {
    background: var(--blue-700);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
.btn-two i, .dashboard-body .btn-two i { font-size: 14px; }

/* Dashboard buttons */
.dashboard-body .dash-btn-one,
.dashboard-body .dash-btn-two {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--blue-600);
    color: #fff;
    border: none;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.dashboard-body .dash-btn-one:hover,
.dashboard-body .dash-btn-two:hover {
    background: var(--blue-700);
    color: #fff;
}
.dashboard-body .dash-btn-one i,
.dashboard-body .dash-btn-two i { font-size: 15px; }
.dashboard-body .dash-btn-one input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.dashboard-body .dash-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--slate-100);
    color: var(--slate-600);
    border: none;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.dashboard-body .dash-cancel-btn:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

/* Semantic button */
.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-600);
    color: #fff;
    border: none;
    border-radius: var(--r-lg);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-modern-primary:hover {
    background: var(--blue-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
    text-decoration: none;
}
.btn-modern-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--slate-700);
    border: 1px solid var(--slate-300);
    border-radius: var(--r-lg);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-modern-secondary:hover {
    background: var(--slate-100);
    color: var(--slate-800);
    border-color: var(--slate-400);
    text-decoration: none;
}

/* View-all pill */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--blue-600);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    padding: 4px 14px;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-view-all:hover {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-600);
    text-decoration: none;
}

/* Bootstrap .btn-primary override */
.btn-primary {
    background-color: var(--blue-600);
    border-color: var(--blue-600);
    border-radius: var(--r-lg);
    font-weight: 600;
    font-size: 14px;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--blue-700);
    border-color: var(--blue-700);
}

/* ----------------------------------------------------------------
   FORMS & INPUTS
   ---------------------------------------------------------------- */
.dashboard-body .dash-input-wrapper { margin-bottom: 20px; }

.dashboard-body .dash-input-wrapper label,
.dashboard-body label.form-label,
.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
    letter-spacing: -.01em;
}

.dashboard-body .dash-input-wrapper input,
.dashboard-body .dash-input-wrapper textarea,
.dashboard-body .dash-input-wrapper select,
.dashboard-body input.form-control,
.dashboard-body textarea.form-control,
.dashboard-body select.form-select,
.form-control,
.form-select {
    width: 100%;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    font-size: 14.5px;
    color: var(--slate-800);
    padding: 10px 14px;
    transition: var(--transition);
    font-family: var(--font);
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-control:focus,
.form-select:focus,
.dashboard-body .dash-input-wrapper input:focus,
.dashboard-body .dash-input-wrapper textarea:focus,
.dashboard-body .dash-input-wrapper select:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.form-control::placeholder,
.dashboard-body .dash-input-wrapper input::placeholder,
.dashboard-body .dash-input-wrapper textarea::placeholder {
    color: var(--slate-400);
}
.form-control:disabled,
.form-select:disabled {
    background: var(--slate-50);
    color: var(--slate-400);
    cursor: not-allowed;
}

/* Checkbox / Radio */
.form-check-input {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--slate-300);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--blue-600);
}
.form-check-input:checked {
    background-color: var(--blue-600);
    border-color: var(--blue-600);
}
.form-check-label { font-size: 14px; color: var(--slate-600); cursor: pointer; }

/* Nice Select */
.nice-select {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    font-size: 14.5px;
    color: var(--slate-800);
    padding: 10px 40px 10px 14px;
    height: auto;
    line-height: 1.5;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    user-select: none;
}
.nice-select::after {
    border-bottom: 2px solid var(--slate-400);
    border-right: 2px solid var(--slate-400);
    content: '';
    display: block;
    height: 7px;
    margin-top: -5px;
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform-origin: 66% 66%;
    transform: rotate(45deg);
    transition: var(--transition);
    width: 7px;
}
.nice-select.open::after { transform: rotate(-135deg); }
.nice-select.open .list {
    display: block;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    z-index: 200;
    overflow-y: auto;
    max-height: 200px;
    padding: 6px;
}
.nice-select .list { display: none; }
.nice-select .option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 14px;
    color: var(--slate-700);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.nice-select .option:hover,
.nice-select .option.focus { background: var(--blue-50); color: var(--blue-700); }
.nice-select .option.selected { color: var(--blue-600); font-weight: 600; }
.nice-select:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }

/* Short filter */
.short-filter { display: flex; align-items: center; gap: 8px; }
.short-filter .nice-select { width: auto; min-width: 160px; }

/* ----------------------------------------------------------------
   ALERTS
   ---------------------------------------------------------------- */
.alert-modern {
    padding: 12px 16px;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-modern.info    { background: var(--blue-50);   border-color: var(--blue-400);   color: var(--blue-800); }
.alert-modern.success { background: var(--green-50);  border-color: var(--green-600);  color: var(--green-700); }
.alert-modern.warning { background: var(--yellow-50); border-color: var(--yellow-600); color: var(--yellow-600); }
.alert-modern.error   { background: var(--red-50);    border-color: var(--red-600);    color: var(--red-700); }

/* Bootstrap .alert overrides */
.alert-success { background: var(--green-50);  border-color: var(--green-100);  color: var(--green-700); border-radius: var(--r-lg); }
.alert-danger  { background: var(--red-50);    border-color: var(--red-100);    color: var(--red-700);   border-radius: var(--r-lg); }
.alert-info    { background: var(--blue-50);   border-color: var(--blue-100);   color: var(--blue-800);  border-radius: var(--r-lg); }
.alert-warning { background: var(--yellow-50); border-color: var(--yellow-100); color: var(--yellow-600);border-radius: var(--r-lg); }

/* ----------------------------------------------------------------
   TABLES
   ---------------------------------------------------------------- */
.dashboard-body .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.property-list-table,
.saved-search-table,
.dashboard-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.property-list-table th,
.saved-search-table th,
.dashboard-body table th {
    background: var(--slate-800);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 12px 14px;
    white-space: nowrap;
    border: none;
}
.property-list-table th:first-child, .saved-search-table th:first-child { border-radius: 0; }
.property-list-table td,
.saved-search-table td,
.dashboard-body table td {
    padding: 14px;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-600);
    vertical-align: middle;
}
.property-list-table tbody tr:last-child td,
.saved-search-table tbody tr:last-child td { border-bottom: none; }
.property-list-table tbody tr:hover td,
.saved-search-table tbody tr:hover td { background: var(--slate-50); }

/* Property table specifics */
.property-name.tran3s { font-weight: 600; color: var(--slate-900); font-size: 14.5px; }
.property-name.tran3s:hover { color: var(--blue-600); }
.property-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    background: var(--blue-50);
    color: var(--blue-700);
    margin-left: 6px;
    text-transform: capitalize;
}
.property-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-700);
    background: var(--green-100);
    padding: 3px 10px;
    border-radius: 50px;
}
.property-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-600);
}
.p-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--r);
    flex-shrink: 0;
}
.address { font-size: 12.5px; color: var(--slate-500); margin-top: 2px; }
.price { font-weight: 700; color: var(--slate-900); }
.manager-info { font-size: 13px; color: var(--slate-600); }

/* ----------------------------------------------------------------
   ACTION DOTS (kebab menu)
   ---------------------------------------------------------------- */
.action-dots { position: relative; }
.action-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--slate-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--slate-500);
    font-size: 16px;
}
.action-btn::after { display: none; }
.action-btn:hover { background: var(--blue-50); color: var(--blue-600); }

.action-dots .dropdown-menu {
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}
.action-dots .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--slate-600);
    font-weight: 500;
    transition: var(--transition);
    background: transparent;
}
.action-dots .dropdown-item:hover { background: var(--blue-50); color: var(--blue-700); }
.action-dots .dropdown-item img { width: 15px; opacity: .55; }
.action-dots .dropdown-item i { font-size: 14px; color: var(--slate-400); }

/* ----------------------------------------------------------------
   PAGINATION
   ---------------------------------------------------------------- */
.pagination-one {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pagination-one li a,
.pagination-one li button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-600);
    background: #fff;
    border: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}
.pagination-one li a:hover,
.pagination-one li button:hover { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-200); }
.pagination-one li.active a,
.pagination-one li.active button { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* ----------------------------------------------------------------
   BADGES / STATUS CHIPS
   ---------------------------------------------------------------- */
.badge-pill-blue {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    background: var(--blue-600);
    color: #fff;
}
.status-active   { background: var(--green-100); color: var(--green-700); border-radius: 50px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.status-inactive { background: var(--slate-100); color: var(--slate-500); border-radius: 50px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.status-pending  { background: var(--yellow-100); color: var(--yellow-600); border-radius: 50px; padding: 3px 10px; font-size: 12px; font-weight: 600; }

/* ----------------------------------------------------------------
   MESSAGES
   ---------------------------------------------------------------- */
.message-wrapper { overflow: hidden; }
.message-sidebar { overflow: hidden; }
.email-read-panel { overflow: hidden; }

.email-list-item { border-bottom: 1px solid var(--slate-100); }
.email-list-item:last-child { border-bottom: none; }

.email-short-preview,
.email-short-preview.d-block {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.email-short-preview:hover { background: var(--slate-50); text-decoration: none; }

.sender-name { font-size: 14px; font-weight: 700; color: var(--slate-900); }
.date        { font-size: 11.5px; color: var(--slate-400); font-weight: 500; white-space: nowrap; padding-left: 8px; }
.mail-sub    { font-size: 12.5px; color: var(--blue-600); font-weight: 600; margin: 2px 0; }
.mail-text   { font-size: 13px; color: var(--slate-500); line-height: 1.45; }

/* ----------------------------------------------------------------
   DASHBOARD INDEX — metric cards + property rows
   ---------------------------------------------------------------- */

/* Page header row */
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.page-header-row h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -.04em;
    margin: 0;
}
.page-date { font-size: 13px; color: var(--slate-400); font-weight: 500; margin-top: 2px; }

/* Metric cards */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.metric-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.metric-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.metric-icon.blue   { background: var(--blue-50);   color: var(--blue-600); }
.metric-icon.green  { background: var(--green-50);  color: var(--green-700); }
.metric-icon.amber  { background: var(--yellow-50); color: var(--yellow-600); }
.metric-icon.red    { background: var(--red-50);    color: var(--red-600); }
.metric-body { flex: 1; min-width: 0; }
.metric-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -.04em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.metric-label {
    font-size: 11.5px;
    color: var(--slate-500);
    font-weight: 600;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Property rows */
.prop-scroll {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.prop-scroll::-webkit-scrollbar { width: 4px; }
.prop-scroll::-webkit-scrollbar-track { background: transparent; }
.prop-scroll::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }

.prop-row {
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
}
.prop-row:last-child { border-bottom: none; }
.prop-row:hover { background: var(--slate-50); }

.prop-color-bar {
    width: 4px;
    align-self: stretch;
    min-height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}
.prop-color-bar.vacant-high   { background: var(--red-600); }
.prop-color-bar.vacant-medium { background: var(--yellow-600); }
.prop-color-bar.vacant-low    { background: #fb923c; }
.prop-color-bar.vacant-none   { background: var(--green-600); }

.prop-main { flex: 1; min-width: 0; }
.prop-name { font-size: 14.5px; font-weight: 700; color: var(--slate-900); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-addr { font-size: 12.5px; color: var(--slate-500); margin-top: 1px; }

.prop-stats-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prop-chip {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
}
.prop-chip.units   { background: var(--slate-100); color: var(--slate-600); }
.prop-chip.revenue { background: var(--blue-50);   color: var(--blue-700); border: 1px solid var(--blue-100); }
.prop-chip.occ-high{ background: var(--green-100); color: var(--green-700); }
.prop-chip.occ-med { background: var(--yellow-100);color: var(--yellow-600); }
.prop-chip.occ-low { background: var(--red-100);   color: var(--red-600); }

.prop-vacancy-pct   { font-size: 13px; font-weight: 700; color: var(--slate-600); text-align: right; white-space: nowrap; }
.prop-vacancy-label { font-size: 10.5px; color: var(--slate-400); text-align: right; text-transform: uppercase; letter-spacing: .04em; }

/* Empty states */
.prop-empty { padding: 48px 20px; text-align: center; }
.prop-empty-icon {
    width: 52px;
    height: 52px;
    background: var(--slate-100);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
}
.prop-empty h5 { font-size: 15px; font-weight: 700; color: var(--slate-700); margin-bottom: 6px; }
.prop-empty p  { font-size: 13.5px; color: var(--slate-400); margin: 0; }
.msg-empty { padding: 36px 20px; text-align: center; color: var(--slate-400); font-size: 14px; }

/* Message rows (dashboard-index) */
.msg-row { padding: 14px 20px; border-bottom: 1px solid var(--slate-100); text-decoration: none; display: block; transition: var(--transition); }
.msg-row:last-child { border-bottom: none; }
.msg-row:hover { background: var(--slate-50); text-decoration: none; }
.msg-row-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.msg-sender  { font-size: 14px; font-weight: 700; color: var(--slate-900); }
.msg-time    { font-size: 11px; color: var(--slate-400); font-weight: 500; white-space: nowrap; padding-left: 8px; }
.msg-property{ font-size: 12.5px; color: var(--blue-600); font-weight: 600; margin-bottom: 2px; }
.msg-preview { font-size: 13px; color: var(--slate-500); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ----------------------------------------------------------------
   MODAL
   ---------------------------------------------------------------- */
.modal-content {
    border: none;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.modal-title { font-weight: 700; color: var(--slate-900); font-size: 16px; }
.modal-body  { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); }

/* Delete account modal */
.remove-account-popup {
    border-radius: var(--r-2xl);
    border: 1px solid var(--border);
    padding: 40px 30px;
}
.remove-account-popup h2 { font-size: 22px; font-weight: 800; color: var(--slate-900); letter-spacing: -.04em; margin: 16px 0 8px; }
.remove-account-popup p  { color: var(--slate-500); margin-bottom: 24px; }
.remove-account-popup .confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: var(--red-600);
    color: #fff;
    border-radius: var(--r-lg);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.remove-account-popup .confirm-btn:hover { background: var(--red-700); color: #fff; }

/* ----------------------------------------------------------------
   SCROLL-TO-TOP
   ---------------------------------------------------------------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue-600);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-blue);
    transition: var(--transition);
    z-index: 500;
}
.scroll-top:hover { background: var(--blue-700); transform: translateY(-2px); }

/* ----------------------------------------------------------------
   MOBILE OVERLAY + BOTTOM NAV
   ---------------------------------------------------------------- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 99;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 95;
    box-shadow: 0 -4px 16px rgba(15,23,42,.08);
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    color: var(--slate-500);
    font-size: 10.5px;
    font-weight: 500;
    text-decoration: none;
    gap: 4px;
    transition: var(--transition);
    min-height: 56px;
}
.mobile-bottom-nav a i { font-size: 20px; line-height: 1; }
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--blue-600); text-decoration: none; }

/* ----------------------------------------------------------------
   FINANCIAL / REPORTING PAGES
   ---------------------------------------------------------------- */
.financial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}
.financial-card .metric-value { font-size: 28px; }

.report-table thead th {
    background: var(--slate-800);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 12px 14px;
    border: none;
}
.report-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--slate-100); font-size: 14px; color: var(--slate-600); }
.report-table tbody tr:last-child td { border-bottom: none; }
.report-table tbody tr:hover td { background: var(--slate-50); }

/* ----------------------------------------------------------------
   INSPECTION PAGES
   ---------------------------------------------------------------- */
.inspection-section-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------------
   LOGIN PAGE (standalone)
   ---------------------------------------------------------------- */
body.login-page,
.login-bg {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 50%, var(--slate-700) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-container {
    background: #fff;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}
.login-container .logo-area { text-align: center; margin-bottom: 28px; }
.login-container .login-header { text-align: center; margin-bottom: 32px; }
.login-container .app-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
    font-weight: 800;
    box-shadow: var(--shadow-blue);
}
.login-container h1,
.login-container h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 6px;
    letter-spacing: -.04em;
}
.login-container p { font-size: 14px; color: var(--slate-500); margin-bottom: 24px; margin-top: 0; }

.login-container .form-group { margin-bottom: 18px; }
.login-container .form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}
.login-container .form-control {
    padding: 11px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    font-size: 15px;
}
.login-container .form-control:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: var(--blue-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -.01em;
    margin-top: 6px;
}
.btn-login:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-blue); }

.alert-error {
    background: var(--red-50);
    color: var(--red-700);
    border: 1px solid var(--red-100);
    border-left: 4px solid var(--red-600);
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 500;
}

.default-creds {
    background: var(--blue-50);
    color: var(--blue-800);
    border: 1px solid var(--blue-100);
    border-left: 4px solid var(--blue-600);
    padding: 14px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 13px;
}
.default-creds h5 { margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--blue-800); }
.default-creds p { margin-bottom: 4px; color: var(--blue-800); }
.default-creds p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------
   PROFILE COMPLETE STATUS (sidebar widget)
   ---------------------------------------------------------------- */
.dash-aside-navbar .profile-complete-status { padding: 12px 16px; }
.dash-aside-navbar .profile-complete-status .progress-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--sidebar-text);
    margin-bottom: 6px;
}
.dash-aside-navbar .profile-complete-status .progress-line {
    height: 6px;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    overflow: hidden;
}
.dash-aside-navbar .profile-complete-status .progress-line .inner-line {
    height: 100%;
    background: var(--blue-500);
    border-radius: 6px;
    transition: width .4s ease;
}
.dash-aside-navbar .profile-complete-status p {
    font-size: 11.5px;
    color: var(--slate-500);
    margin-top: 6px;
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
   BOOTSTRAP DROPDOWN OVERRIDES
   ---------------------------------------------------------------- */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    font-family: var(--font);
}
.dropdown-item {
    border-radius: 6px;
    font-size: 14px;
    color: var(--slate-600);
    transition: var(--transition);
    padding: 7px 10px;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--blue-50);
    color: var(--blue-700);
}
.dropdown-divider { border-color: var(--slate-100); margin: 4px 0; }

/* Bootstrap .badge override */
.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
}
.badge.bg-primary, .badge.bg-blue { background: var(--blue-600); }

/* ----------------------------------------------------------------
   MISC HELPER CLASSES
   ---------------------------------------------------------------- */
.bg-white { background: #fff; }
.border-0 { border: none; }
.stretched-link::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: '';
}
.lazy-img { opacity: 0; transition: opacity .3s; }
.lazy-img.loaded { opacity: 1; }
.style-none { list-style: none; padding: 0; margin: 0; }

/* ----------------------------------------------------------------
   RESPONSIVE — TABLET & MOBILE
   ---------------------------------------------------------------- */

/* 1399px */
@media (max-width: 1399px) {
    :root { --sidebar-w: 250px; }
    .dashboard-body { padding: calc(var(--header-h) + 24px) 28px 50px; }
    .metric-grid { gap: 12px; }
}

/* 1199px */
@media (max-width: 1199px) {
    :root { --sidebar-w: 240px; }
    .dashboard-body { padding: calc(var(--header-h) + 20px) 20px 44px; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

/* iPad landscape */
@media (max-width: 1024px) {
    :root { --sidebar-w: 230px; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }

    /* Touch targets */
    .dash-aside-navbar .dasboard-main-nav li a { min-height: 48px; padding: 12px 14px; }
    .dash-aside-navbar .logout-btn { min-height: 48px; }
    .dashboard-body .dash-btn-one,
    .dashboard-body .dash-btn-two,
    .btn-modern-primary { min-height: 46px; font-size: 15px; }
    .form-control, .form-select,
    .dashboard-body .dash-input-wrapper input,
    .dashboard-body .dash-input-wrapper textarea,
    .dashboard-body .dash-input-wrapper select { min-height: 52px; font-size: 16px; padding: 12px 14px; }
    select, input[type="text"], input[type="date"],
    input[type="email"], input[type="password"],
    input[type="number"], textarea { font-size: 16px; }
}

/* iPad portrait */
@media (min-width: 768px) and (max-width: 991px) {
    :root { --sidebar-w: 220px; }
    .dashboard-body { padding: calc(var(--header-h) + 18px) 16px 40px; }
    .dashboard-body .dashboard-header .btn-two { display: none; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    /* Sidebar slides in from left */
    .dash-aside-navbar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
    }
    .dash-aside-navbar.show {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(15,23,42,.18);
    }

    /* Body takes full width */
    .dashboard-body {
        margin-left: 0;
        padding: calc(var(--header-h) + 16px) 14px 80px;
    }

    /* Header full width */
    .dashboard-body .dashboard-header {
        left: 0;
        right: 0;
        padding: 0 14px;
    }
    .dashboard-body .dashboard-header h4 { display: none; }
    .dashboard-body .dashboard-header .btn-two { display: none; }

    /* Show bottom nav */
    .mobile-bottom-nav { display: flex; }

    /* Metric grid 2-col */
    .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
    .metric-value { font-size: 18px; }
    .metric-icon  { width: 36px; height: 36px; font-size: 16px; }

    /* Tables scroll */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Prop rows */
    .prop-row { flex-wrap: wrap; }

    /* Scroll to top */
    .scroll-top { bottom: 70px; }

    /* Login responsive */
    .login-container { padding: 28px 22px; }
}

/* Small phones */
@media (max-width: 575px) {
    .dashboard-body { padding: calc(var(--header-h) + 12px) 12px 80px; }
    .metric-grid { gap: 8px; }
    .metric-card  { padding: 14px 12px; gap: 8px; }
    .metric-icon  { width: 34px; height: 34px; font-size: 15px; }
    .metric-value { font-size: 16px; }
    .content-card-header { padding: 14px 16px; }
    .prop-row     { padding: 14px 16px; }
    .msg-row      { padding: 12px 16px; }
    .email-short-preview { padding: 12px 16px; }
}

/* ----------------------------------------------------------------
   SAFE AREA INSETS (notch / Dynamic Island)
   ---------------------------------------------------------------- */
@supports (padding: max(0px)) {
    .dash-aside-navbar {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    @media (max-width: 767px) {
        .dashboard-body {
            padding-bottom: max(80px, calc(60px + env(safe-area-inset-bottom)));
        }
    }
}

/* ---------------------------------------------------------------------------
   Touch targets and tappable contact details.
   The 48px sidebar rule lived inside a max-width:1024px media query, which an
   iPad Pro in landscape (1194/1366px CSS) never matches — so the nav stayed at
   33-38px on the device this app is actually used on. These apply at all widths.
   --------------------------------------------------------------------------- */
.dash-aside-navbar .dasboard-main-nav li a { min-height: 48px; }
.dash-aside-navbar .logout-btn { min-height: 48px; }

/* The 3-dot row menu is the only route to View / Edit / Delete on list screens. */
.action-dots,
.dropdown-toggle.action-btn,
.table .dropdown-toggle { min-width: 44px; min-height: 44px; }

/* Phone numbers and emails are tap-to-call / tap-to-mail on a tablet. */
a.contact-link {
    color: var(--blue-600, #2563eb);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
a.contact-link:hover,
a.contact-link:focus { text-decoration: underline; }

/* Visible keyboard focus — the template removed outlines everywhere. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--blue-600, #2563eb);
    outline-offset: 2px;
}

/* Google sign-in on the login page. */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: #94a3b8;
    font-size: 13px;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}
.btn-google:hover,
.btn-google:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1f2937;
    text-decoration: none;
}

/* The row action button ships an empty <span> as its icon and nothing ever
   styled it, so every 3-dot menu on the list screens rendered as a blank grey
   square — you could not tell it was a menu. Draw the dots from the span. */
.action-btn > span {
    position: relative;
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.action-btn > span::before,
.action-btn > span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.action-btn > span::before { top: -7px; }
.action-btn > span::after  { top: 7px; }

/* Same empty-span pattern on the mobile nav toggler. */
.dash-mobile-nav-toggler > span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.dash-mobile-nav-toggler > span::before,
.dash-mobile-nav-toggler > span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.dash-mobile-nav-toggler > span::before { top: -6px; }
.dash-mobile-nav-toggler > span::after  { top: 6px; }

/* Dashboard message rows: one per conversation. A thread whose newest message
   is inbound is waiting on us, so it is bolded and pulled to the top. */
.msg-row.msg-awaiting { background: #f8fbff; border-left: 3px solid var(--blue-600, #2563eb); padding-left: 17px; }
.msg-row.msg-awaiting:hover { background: #eff6ff; }
.msg-row.msg-awaiting .msg-sender { color: var(--slate-900, #0f172a); }
.msg-row.msg-awaiting .msg-preview { color: var(--slate-700, #334155); font-weight: 600; }
.msg-sender { display: inline-flex; align-items: center; gap: 7px; }
.msg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-600, #2563eb);
    flex-shrink: 0;
}
.msg-you { color: var(--slate-400, #94a3b8); font-weight: 600; }
.msg-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 9px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    background: #dbeafe;
    color: #1e40af;
}

/* Password sign-in is the fallback now: Google is the primary route, so the
   username/password form is tucked behind a disclosure. */
details.pw-login { margin-top: 20px; }
details.pw-login > summary {
    cursor: pointer;
    list-style: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
details.pw-login > summary::-webkit-details-marker { display: none; }
details.pw-login > summary:hover { color: #2563eb; }
details.pw-login[open] > summary { margin-bottom: 12px; }

/* User management: active vs deactivated accounts. */
.user-tabs { border-bottom: 1px solid #e2e8f0; gap: 4px; }
.user-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    min-height: 44px;
    padding: 8px 16px;
    background: none;
}
.user-tabs .nav-link:hover { color: #2563eb; border-bottom-color: #bfdbfe; }
.user-tabs .nav-link.active { color: #2563eb; border-bottom-color: #2563eb; background: none; }
.user-tabs .tab-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    margin-left: 5px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
}
.user-tabs .nav-link.active .tab-count { background: #dbeafe; color: #1e40af; }
