/**
 * Tech Earth CRM - Enterprise SaaS Design System v2.0
 * Brand: Tech Earth CRM
 * Company: Tech Earth Global Business Solutions Pvt. Ltd
 */

:root {
    /* Brand Palette */
    --brand-primary: #011432;
    --brand-primary-hover: #0a2552;
    --brand-primary-soft: #0e2c5c;
    --brand-primary-light: rgba(1, 20, 50, 0.06);

    --brand-secondary: #0d9e37;
    --brand-success: #0d9e37;
    --brand-success-hover: #0a822d;
    --brand-success-light: rgba(13, 158, 55, 0.10);

    /* Surface & Canvas */
    --bg-page: #f3f5f9;
    --bg-main: #f3f5f9;
    --bg-card: #ffffff;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;

    /* Text Tokens */
    --text-dark: #0f172a;
    --text-primary: #011432;
    --text-grey: #64748b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders & Hairlines */
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --border-focus: #011432;

    /* Semantic Status Colors */
    --status-success: #0d9e37;
    --status-danger: #dc2626;
    --status-warning: #d97706;
    --status-info: #2563eb;
    --status-pending: #64748b;

    /* Legacy / Cross-page Aliases */
    --holiday-red: #dc2626;
    --warning-amber: #d97706;
    --accent-blue: #2563eb;

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(1, 20, 50, 0.04);
    --shadow-sm: 0 1px 3px rgba(1, 20, 50, 0.05), 0 1px 2px rgba(1, 20, 50, 0.03);
    --shadow-soft: 0 4px 12px rgba(1, 20, 50, 0.05);
    --shadow-card: 0 2px 10px rgba(1, 20, 50, 0.04), 0 1px 2px rgba(1, 20, 50, 0.02);
    --shadow-md: 0 8px 20px rgba(1, 20, 50, 0.07);
    --shadow-hover: 0 10px 26px rgba(1, 20, 50, 0.09);
    --shadow-modal: 0 24px 60px rgba(1, 20, 50, 0.24);

    /* Shell Dimensions */
    --sidebar-width: 264px;
    --sidebar-collapsed-width: 78px;
    --topbar-height: 64px;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   1. Base Reset & Typography
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
    color: var(--brand-success);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    font-weight: 700;
    line-height: 1.25;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: #f1f5f9;
    color: var(--brand-primary);
    padding: 2px 6px;
    border-radius: 5px;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2. Application Shell: Sidebar, Main, Topbar, Footer
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-page);
    position: relative;
}

/* --- Left Sidebar --- */
.app-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #011432 0%, #021a40 65%, #01112b 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(1, 20, 50, 0.14);
    transition: width 0.24s cubic-bezier(0.4, 0, 0.2, 1), transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar-brand {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    min-height: var(--topbar-height);
    flex-shrink: 0;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #ffffff;
}

.sidebar-brand-link:hover {
    color: #ffffff;
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 9px;
    background: #ffffff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-brand-text {
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-brand-text h2 {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.2;
}

.sidebar-brand-text span {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.58);
    display: block;
    margin-top: 2px;
    font-weight: 500;
}

.sidebar-mobile-close {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.sidebar-menu {
    list-style: none;
    padding: 12px 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: rgba(255, 255, 255, 0.42);
    padding: 14px 12px 5px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-item {
    position: relative;
    border-radius: 10px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9.5px 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    position: relative;
    white-space: nowrap;
}

.menu-link .menu-icon {
    font-size: 15px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.18s ease;
    flex-shrink: 0;
}

.menu-pill-accent {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(13, 158, 55, 0.22);
    color: #6ee7b7;
}

.menu-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.menu-link:hover .menu-icon {
    color: #4ade80;
}

.menu-item.active .menu-link {
    background: linear-gradient(90deg, rgba(13, 158, 55, 0.22) 0%, rgba(255, 255, 255, 0.10) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--brand-success);
}

.menu-item.active .menu-link .menu-icon {
    color: #4ade80;
}

.menu-link-logout {
    color: #fda4af !important;
}

.menu-link-logout .menu-icon {
    color: #fda4af !important;
}

.menu-link-logout:hover {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #fecdd3 !important;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.45;
    flex-shrink: 0;
}

.sidebar-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.sidebar-role-chip .role-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.sidebar-footer-copy {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.46);
}

/* Desktop Collapsed Sidebar */
.app-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.app-sidebar.collapsed .sidebar-brand-text,
.app-sidebar.collapsed .menu-text,
.app-sidebar.collapsed .menu-pill-accent,
.app-sidebar.collapsed .menu-category,
.app-sidebar.collapsed .sidebar-footer {
    display: none;
}

.app-sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 14px 8px;
}

.app-sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 12px;
}

.app-sidebar.collapsed .menu-link .menu-icon {
    font-size: 18px;
}

.app-main.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* --- Main Area & Topbar --- */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    transition: margin-left 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-page);
}

.app-topbar {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.sidebar-toggle-btn {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--brand-primary);
    font-size: 16px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.topbar-search-bar {
    position: relative;
    width: 100%;
    max-width: 340px;
}

.topbar-search-bar input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-subtle);
    font-size: 13px;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

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

.topbar-search-bar input:focus {
    background-color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(1, 20, 50, 0.08);
}

.topbar-search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.topbar-search-bar .search-kbd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1px 6px;
    line-height: 1.4;
    pointer-events: none;
}

.topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Live Clock Badge */
.live-clock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-primary);
    color: #ffffff;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(1, 20, 50, 0.14);
}

.clock-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.25); }
}

/* Notification & Profile Menus */
.notification-dropdown,
.user-profile-menu {
    position: relative;
}

.notification-bell-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.notification-bell-btn:hover {
    background-color: #ffffff;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--status-danger);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: var(--radius-full);
    transition: all 0.18s ease;
    user-select: none;
}

.user-profile-btn:hover {
    background-color: var(--bg-subtle);
    border-color: var(--border-color);
}

.user-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background-color: var(--bg-page);
    flex-shrink: 0;
}

.user-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #163a70 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

.user-meta .name {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
}

.user-meta .role-badge {
    font-size: 10.5px;
    color: var(--text-grey);
    font-weight: 600;
    white-space: nowrap;
}

.user-dropdown-caret {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Floating Dropdown Panels */
.dropdown-panel,
.profile-dropdown-panel,
.notif-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(1, 20, 50, 0.16);
    border: 1px solid var(--border-color);
    display: none !important;
    z-index: 1050;
    overflow: hidden;
}

.dropdown-panel.show,
.profile-dropdown-panel.show,
.notif-dropdown-panel.show {
    display: block !important;
    animation: fadeInDropdown 0.18s ease-out;
}

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

.notif-dropdown-panel,
.dropdown-panel {
    width: 340px;
}

.dropdown-header {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 13.5px;
}

.dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-empty-state {
    padding: 28px 18px;
    text-align: center;
    color: var(--text-grey);
    font-size: 13px;
}

.notif-empty-icon {
    font-size: 26px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.notification-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    transition: background 0.15s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8fafc;
}

.notification-item.unread {
    background-color: rgba(37, 99, 235, 0.045);
}

.notification-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-info);
    flex-shrink: 0;
}

.notification-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--brand-primary);
    margin-bottom: 2px;
}

.notification-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.dropdown-footer {
    padding: 10px 16px;
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.link-mark-read {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-success);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-mark-read:hover {
    text-decoration: underline;
}

.profile-dropdown-panel {
    width: 256px;
}

.profile-dropdown-header {
    padding: 14px 16px;
    background-color: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-name {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 14px;
}

.profile-dropdown-email {
    font-size: 11.5px;
    color: var(--text-grey);
    word-break: break-all;
    margin-top: 2px;
}

.profile-dropdown-id {
    font-size: 10.5px;
    color: var(--brand-success);
    font-weight: 700;
    margin-top: 6px;
    display: inline-block;
    background: rgba(13, 158, 55, 0.1);
    padding: 2px 9px;
    border-radius: var(--radius-full);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--brand-primary);
}

.profile-dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--text-grey);
    font-size: 13.5px;
}

.profile-dropdown-item.item-logout {
    color: var(--status-danger) !important;
}

.profile-dropdown-item.item-logout i {
    color: var(--status-danger) !important;
}

.profile-dropdown-item.item-logout:hover {
    background-color: #fef2f2;
}

.profile-dropdown-divider,
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

/* --- Main Page Content & Header --- */
.page-content {
    flex: 1;
    padding: 26px 28px 36px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

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

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-grey);
    margin-bottom: 6px;
}

.page-breadcrumb a {
    color: var(--brand-primary);
    font-weight: 600;
}

.page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    letter-spacing: -0.4px;
}

.page-title > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(1, 20, 50, 0.07);
    color: var(--brand-primary);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-grey);
    margin-top: 4px;
}

.app-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
    font-size: 12px;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.footer-copy { font-weight: 500; }
.footer-brand { font-size: 11.5px; color: var(--text-muted); }

/* ==========================================================================
   3. Cards, Panels & Callout Banners
   ========================================================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-header {
    padding: 16px 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header-subtle {
    background: var(--bg-subtle);
}

.card-header-navy {
    background: linear-gradient(135deg, #011432 0%, #092654 100%);
    color: #ffffff;
    border-bottom: none;
}

.card-header-navy .card-title,
.card-header-navy .card-title i {
    color: #ffffff;
}

.card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-grey);
    margin-top: 2px;
}

.card-body {
    padding: 22px;
}

/* Warning / Info Banners */
.smtp-warning-banner {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid var(--status-warning);
    color: #92400e;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-xs);
}

.smtp-warning-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
}

.smtp-warning-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #92400e;
    color: #ffffff !important;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
}

.smtp-warning-link:hover {
    background: #78350f;
}

.login-summary-banner {
    background: linear-gradient(135deg, #011432 0%, #0c2754 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    box-shadow: var(--shadow-card);
}

.login-summary-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.login-summary-item:last-child {
    border-right: none;
    padding-right: 0;
}

.login-summary-item .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.login-summary-item .val {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.info-callout {
    background-color: var(--bg-subtle);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.info-callout-blue {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--status-info);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 13px;
    color: #1e40af;
}

/* ==========================================================================
   4. Buttons & Interactive Pills
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 17px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.35;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn:disabled, .btn.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(1, 20, 50, 0.22);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--brand-success);
    color: #ffffff;
    border-color: var(--brand-success);
}

.btn-success:hover {
    background-color: var(--brand-success-hover);
    border-color: var(--brand-success-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 158, 55, 0.25);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: #ffffff;
    border-color: var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--bg-subtle);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-secondary {
    background-color: #f1f5f9;
    border-color: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-danger {
    background-color: var(--status-danger);
    color: #ffffff;
    border-color: var(--status-danger);
}

.btn-danger:hover {
    background-color: #b91c1c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.24);
}

.btn-warning {
    background-color: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background-color: #d97706;
    color: #ffffff;
}

.btn-outline-danger {
    background-color: #ffffff;
    border-color: #fecaca;
    color: var(--status-danger);
}

.btn-outline-danger:hover {
    background-color: #fef2f2;
    border-color: var(--status-danger);
}

.btn-outline-warning {
    background-color: #ffffff;
    border-color: #fde68a;
    color: #b45309;
}

.btn-outline-warning:hover {
    background-color: #fffbeb;
    border-color: #f59e0b;
}

.btn-outline-success {
    background-color: #ffffff;
    border-color: #bbf7d0;
    color: var(--brand-success);
}

.btn-outline-success:hover {
    background-color: #f0fdf4;
    border-color: var(--brand-success);
}

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

.btn-xs {
    padding: 4px 9px;
    font-size: 11.5px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 15.5px;
    border-radius: 11px;
}

.btn-full {
    width: 100%;
}

/* Filter Pill Buttons */
.pill-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pill-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.16s ease;
}

.pill-tab:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--bg-subtle);
}

.pill-tab.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.pill-tab.pill-danger {
    color: var(--status-danger);
    border-color: #fecaca;
    background: #fef2f2;
}

.pill-tab.pill-danger.active {
    background: var(--status-danger);
    border-color: var(--status-danger);
    color: #ffffff;
}

.pill-tab.pill-warning.active {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

.pill-tab.pill-success {
    color: var(--brand-success);
}

.pill-tab.pill-success.active {
    background: var(--brand-success);
    border-color: var(--brand-success);
    color: #ffffff;
}

/* ==========================================================================
   5. Forms, Inputs & Filter Bars
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 9.5px 13px;
    font-size: 13.5px;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(1, 20, 50, 0.08);
}

.form-control:disabled {
    background-color: var(--bg-subtle);
    color: var(--text-grey);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 82px;
}

.form-hint {
    font-size: 11.5px;
    color: var(--text-grey);
    margin-top: 4px;
    display: block;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary);
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: 9px 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-prefix-wrap {
    position: relative;
}

.input-prefix-symbol {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--brand-primary);
    pointer-events: none;
}

.input-prefix-wrap .form-control {
    padding-left: 30px;
}

/* Filter Bar */
.filter-bar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-search-col {
    flex: 2 1 220px;
    min-width: 200px;
}

.filter-col {
    flex: 1 1 150px;
    min-width: 140px;
}

.filter-actions-col {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ==========================================================================
   6. KPI & Stats Grids (8-Card Grid + 4-Card + 3-Card Stat Grids)
   ========================================================================== */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 20px;
    align-items: stretch;
}

.dash-kpi-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 100px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.dash-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(1, 20, 50, 0.25);
}

.dash-kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.dash-kpi-icon.navy { background: rgba(1, 20, 50, 0.08); color: var(--brand-primary); }
.dash-kpi-icon.green { background: rgba(13, 158, 55, 0.12); color: var(--brand-success); }
.dash-kpi-icon.blue { background: rgba(37, 99, 235, 0.11); color: #2563eb; }
.dash-kpi-icon.red { background: rgba(220, 38, 38, 0.11); color: var(--status-danger); }
.dash-kpi-icon.amber { background: rgba(217, 119, 6, 0.12); color: var(--status-warning); }

.dash-kpi-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.dash-kpi-number {
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.dash-kpi-number.red { color: var(--status-danger); }
.dash-kpi-number.green { color: var(--brand-success); }
.dash-kpi-number.blue { color: #2563eb; }
.dash-kpi-number.amber { color: var(--status-warning); }

.dash-kpi-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stat Grids (used in Employee Dash, Attendance, Leaves) */
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

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

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.stat-info {
    min-width: 0;
    flex: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-grey);
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-subtext {
    font-size: 12px;
    color: var(--text-grey);
    margin-top: 3px;
}

.stat-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-icon-navy { background: rgba(1, 20, 50, 0.08); color: var(--brand-primary); }
.stat-icon-green { background: rgba(13, 158, 55, 0.12); color: var(--brand-success); }
.stat-icon-blue { background: rgba(37, 99, 235, 0.11); color: #2563eb; }
.stat-icon-amber { background: rgba(217, 119, 6, 0.12); color: var(--status-warning); }
.stat-icon-red { background: rgba(220, 38, 38, 0.11); color: var(--status-danger); }

/* ==========================================================================
   7. Responsive Layout Grids
   ========================================================================== */
.dash-split-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

.dashboard-main-col,
.dashboard-side-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.dashboard-bottom-grid,
.layout-split-2,
.profile-grid,
.doc-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.layout-aside-380 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.layout-aside-320,
.full-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 22px;
}

.att-punch-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    align-items: center;
}

.att-timers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.att-timer-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 13px 14px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   8. Tables, Avatars, Badges & Pagination
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-y {
    max-height: 430px;
    overflow-y: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    background: #ffffff;
}

.table thead th {
    background-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 16px;
    white-space: nowrap;
    border: none;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table thead tr.thead-danger th {
    background-color: #b91c1c;
}

.table thead tr.thead-warning th {
    background-color: #c2410c;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.14s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody tr.row-missed {
    background-color: #fff5f5;
}

.table tbody tr.row-holiday {
    background-color: #f8fafc;
    color: var(--text-muted);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-compact thead th { padding: 10px 12px; font-size: 11px; }
.table-compact tbody td { padding: 10px 12px; font-size: 12.5px; }

/* Table Pagination Bar */
.table-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    font-size: 12.5px;
    color: var(--text-grey);
}

.pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.page-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

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

.avatar-circle.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-circle.avatar-lg { width: 54px; height: 54px; font-size: 20px; }
.avatar-circle.avatar-green { background: #0d9e37; }
.avatar-circle.avatar-blue { background: #2563eb; }
.avatar-circle.avatar-purple { background: #7c3aed; }
.avatar-circle.avatar-amber { background: #d97706; }
.avatar-circle.avatar-red { background: #dc2626; }

/* Online Indicators */
.online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-success);
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(13, 158, 55, 0.18);
}

.offline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    display: inline-block;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.badge-active, .badge-success {
    background-color: rgba(13, 158, 55, 0.12);
    color: #0b7d2b;
}

.badge-pending, .badge-warning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-invite {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-danger, .badge-lost {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-inactive {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-info, .badge-blue {
    background-color: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.badge-navy {
    background-color: rgba(1, 20, 50, 0.08);
    color: var(--brand-primary);
}

/* Next Follow Up Badges */
.badge-followup-today { background-color: #2563eb; color: #ffffff; font-weight: 700; }
.badge-followup-missed { background-color: #dc2626; color: #ffffff; font-weight: 700; }
.badge-followup-tomorrow { background-color: #ea580c; color: #ffffff; font-weight: 700; }
.badge-followup-future { background-color: #f1f5f9; color: var(--brand-primary); border: 1px solid var(--border-color); }

/* Sales Status Badges */
.badge-deal-done { background-color: #0d9e37 !important; color: #ffffff !important; font-weight: 700; }
.badge-lost { background-color: #dc2626 !important; color: #ffffff !important; font-weight: 700; border: none !important; }
.badge-interested { background-color: rgba(13, 158, 55, 0.14) !important; color: #0b7d2b !important; }
.badge-new-lead { background-color: rgba(37, 99, 235, 0.12) !important; color: #1d4ed8 !important; }
.badge-thinking { background-color: #fef3c7 !important; color: #b45309 !important; }
.badge-budget { background-color: #ffedd5 !important; color: #c2410c !important; }
.badge-call-later { background-color: #e0f2fe !important; color: #0369a1 !important; }
.badge-not-interested { background-color: #e2e8f0 !important; color: #475569 !important; }
.badge-no-answer { background-color: #fee2e2 !important; color: #b91c1c !important; }

/* Client Cell & View Grids */
.client-info-cell { display: flex; align-items: center; gap: 11px; }
.client-info-meta { display: flex; flex-direction: column; min-width: 0; }
.client-name-title { font-weight: 700; color: var(--brand-primary); font-size: 13.5px; }
.client-name-title:hover { color: var(--brand-success); text-decoration: underline; }
.client-lead-source { font-size: 11px; color: var(--text-grey); margin-top: 2px; }

.client-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.client-details-grid-secondary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.client-view-split {
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    gap: 24px;
    align-items: start;
}

.detail-label { font-size: 11.5px; color: var(--text-grey); font-weight: 600; display: block; text-transform: uppercase; letter-spacing: 0.3px; }
.detail-val { font-size: 14px; font-weight: 600; margin-top: 3px; color: var(--text-dark); }
.detail-val-bold { font-size: 14px; font-weight: 700; margin-top: 3px; color: var(--brand-primary); }
.detail-val-highlight { font-size: 15px; font-weight: 700; margin-top: 3px; }

.client-link-tel { color: var(--brand-primary); font-weight: 700; }
.client-link-tel:hover { color: var(--brand-success); text-decoration: underline; }
.client-link-email { color: var(--brand-primary); }
.client-link-email:hover { text-decoration: underline; }

.requirement-box {
    margin-top: 18px;
    padding: 14px 18px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--brand-success);
    border-radius: var(--radius-sm);
}

.requirement-title { font-size: 12px; font-weight: 700; color: var(--brand-primary); display: block; margin-bottom: 4px; }
.requirement-body { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ==========================================================================
   9. Lead Pipeline, Visual Analytics Bar & Calling Report
   ========================================================================== */
.pipeline-card {
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.pipeline-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 16px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.pipeline-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 160px;
    min-width: 140px;
}

.pipeline-filter-group label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-grey);
}

.pipeline-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Visual Pipeline Distribution Chart Bar */
.pipeline-visual-bar-wrap {
    margin-bottom: 18px;
}

.pipeline-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-grey);
    margin-bottom: 7px;
}

.chart-progress-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    display: flex;
    gap: 2px;
}

.chart-seg {
    height: 100%;
    transition: width 0.4s ease;
}

.chart-seg-contacted { background: #0284c7; }
.chart-seg-interested { background: #16a34a; }
.chart-seg-followup { background: #f59e0b; }
.chart-seg-dealdone { background: #0d9e37; }
.chart-seg-lost { background: #dc2626; }

.pipeline-stages-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pipeline-stage-box {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 84px;
}

.pipeline-stage-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pipeline-stage-box .stage-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pipeline-stage-box .stage-count {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.pipeline-stage-box.stage-total { background: var(--brand-primary); color: #ffffff; }
.pipeline-stage-box.stage-total .stage-title { color: rgba(255, 255, 255, 0.8); }
.pipeline-stage-box.stage-contacted { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.pipeline-stage-box.stage-interested { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.pipeline-stage-box.stage-followup { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.pipeline-stage-box.stage-deal-done { background: var(--brand-success); color: #ffffff; }
.pipeline-stage-box.stage-deal-done .stage-title { color: rgba(255, 255, 255, 0.88); }
.pipeline-stage-box.stage-lost { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

.calling-report-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    background-color: #ffffff;
}

.calling-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================================================
   10. Client Detail Timeline
   ========================================================================== */
.timeline-container {
    position: relative;
    padding-left: 28px;
    margin-top: 8px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 18px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--border-color);
    z-index: 2;
}

.timeline-dot.dot-pending { background-color: #2563eb; box-shadow: 0 0 0 2px #2563eb; }
.timeline-dot.dot-completed { background-color: #0d9e37; box-shadow: 0 0 0 2px #0d9e37; }
.timeline-dot.dot-missed { background-color: #dc2626; box-shadow: 0 0 0 2px #dc2626; }
.timeline-dot.dot-email { background-color: #011432; box-shadow: 0 0 0 2px #011432; }
.timeline-dot.dot-rescheduled { background-color: #d97706; box-shadow: 0 0 0 2px #d97706; }

.timeline-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    padding: 15px 18px;
    border-left: 4px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.timeline-card:hover { box-shadow: var(--shadow-card); }
.timeline-card.status-pending, .timeline-card.pending { border-left-color: #2563eb; }
.timeline-card.status-completed, .timeline-card.completed { border-left-color: #0d9e37; }
.timeline-card.status-missed, .timeline-card.missed { border-left-color: #dc2626; }
.timeline-card.status-email { border-left-color: #011432; }
.timeline-card.status-rescheduled, .timeline-card.rescheduled { border-left-color: #d97706; }

.timeline-card-header,
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-card-meta,
.timeline-date {
    font-size: 11.5px;
    color: var(--text-grey);
    font-weight: 500;
}

.timeline-card-body,
.timeline-remark {
    font-size: 13.5px;
    color: var(--text-dark);
    line-height: 1.5;
}

.timeline-meta {
    font-size: 12px;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

/* Navigation Tabs */
.nav-tabs-modern {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 22px;
    overflow-x: auto;
}

.nav-tab-btn {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-grey);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-tab-btn:hover {
    color: var(--brand-primary);
}

.nav-tab-btn.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

/* ==========================================================================
   11. Modals, Alerts & Toast System
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 20, 50, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.2s ease;
}

.modal-overlay.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-dialog-sm { max-width: 440px; }
.modal-dialog-md { max-width: 720px; }
.modal-dialog-lg { max-width: 860px; }

.modal-header {
    background: var(--brand-primary);
    color: #ffffff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

.modal-body {
    padding: 22px;
    max-height: calc(85vh - 130px);
    overflow-y: auto;
}

.modal-scrollable {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 14px 22px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-dialog-msg {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Alerts */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-success { background-color: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger { background-color: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-warning { background-color: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info { background-color: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* Toasts */
.crm-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-toast {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(1, 20, 50, 0.16);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-primary);
    padding: 13px 16px;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.crm-toast.show { opacity: 1; transform: translateY(0); }
.crm-toast-success { border-left-color: var(--brand-success); }
.crm-toast-danger, .crm-toast-error { border-left-color: var(--status-danger); }
.crm-toast-warning { border-left-color: var(--status-warning); }
.crm-toast-info { border-left-color: var(--brand-primary); }

.toast-icon { font-size: 16px; }
.crm-toast-success .toast-icon { color: var(--brand-success); }
.crm-toast-danger .toast-icon, .crm-toast-error .toast-icon { color: var(--status-danger); }
.crm-toast-warning .toast-icon { color: var(--status-warning); }
.crm-toast-info .toast-icon { color: var(--brand-primary); }
.toast-body { font-size: 13px; color: var(--text-dark); line-height: 1.4; }
.toast-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); margin-left: auto; }

/* ==========================================================================
   12. Smart Mini Calendar Widget & Full Calendar Page
   ========================================================================== */
.mini-calendar-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-subtle);
}

.calendar-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--brand-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.calendar-nav-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 12px 14px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-grey);
}

.calendar-weekdays .is-sunday {
    color: var(--status-danger);
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 4px 14px 14px;
}

.cal-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-dark);
    border-radius: 9px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.cal-day-cell.empty {
    pointer-events: none;
}

.cal-day-cell:not(.empty):hover {
    background-color: #f1f5f9;
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.cal-day-cell.today-border {
    border: 2px solid #2563eb !important;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

.cal-day-cell.holiday-bg {
    background-color: #fef2f2;
    color: #dc2626;
}

.cal-attendance-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 2px;
}

.dot-green { background-color: #0d9e37; }
.dot-yellow { background-color: #f59e0b; }
.dot-red { background-color: #dc2626; }
.dot-grey { background-color: #94a3b8; }

.calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-subtle);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.green { background-color: #0d9e37; }
.legend-dot.yellow { background-color: #f59e0b; }
.legend-dot.red { background-color: #dc2626; }
.legend-dot.grey { background-color: #94a3b8; }

.calendar-widget-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
    background: #ffffff;
}

.calendar-widget-footer .btn {
    flex: 1;
}

/* Full Calendar Page Grid */
.full-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.full-cal-weekday {
    text-align: center;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    padding: 9px 4px;
    border-radius: 8px;
    color: var(--brand-primary);
    background: #f1f5f9;
}

.full-cal-weekday.is-sunday {
    color: #dc2626;
    background: #fef2f2;
}

.full-cal-empty {
    min-height: 92px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed #e2e8f0;
    opacity: 0.6;
}

.full-cal-cell {
    min-height: 96px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.full-cal-cell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--brand-primary);
}

.full-cal-cell.is-today {
    border: 2px solid #2563eb;
    background: #eff6ff;
}

.full-cal-cell.is-holiday {
    background: #fef2f2;
    border-color: #fecaca;
}

.cal-pill-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   13. Profile, Onboarding Wizard & Auth Screens
   ========================================================================== */
.profile-hero-card {
    background: linear-gradient(135deg, #011432 0%, #0b2a5c 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.profile-hero-card h2 {
    color: #ffffff;
    font-size: 22px;
    margin: 0;
}

.profile-hero-team-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-align: right;
}

/* Complete Profile Wizard */
.wizard-page {
    min-height: 100vh;
    background-color: var(--bg-page);
    padding: 28px 16px 48px;
}

.wizard-container {
    max-width: 840px;
    margin: 0 auto;
}

.wizard-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
}

.wizard-header-brand { display: flex; align-items: center; gap: 12px; }
.wizard-brand-logo { height: 40px; width: auto; object-fit: contain; }
.wizard-brand-title { font-size: 20px; font-weight: 800; color: var(--brand-primary); margin: 0; }
.wizard-brand-company { font-size: 11.5px; color: var(--text-grey); }
.wizard-header-user { display: flex; align-items: center; gap: 12px; }
.wizard-user-name { font-size: 13px; color: var(--text-secondary); font-weight: 600; }

.wizard-progress-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-card);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-success) 100%);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.section-pill {
    flex: 1 1 200px;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-grey);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.18s ease;
}

.section-pill:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.section-pill.active {
    border-color: var(--brand-primary);
    background-color: #f8fafc;
    color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.section-pill.done {
    border-color: rgba(13, 158, 55, 0.4);
    background-color: #f0fdf4;
    color: var(--brand-success);
}

.wizard-personal-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 18px;
}

.doc-preview-badge {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Auth Split-Screen & Centered Cards */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-page);
}

.auth-left-hero {
    flex: 1.15;
    background: linear-gradient(145deg, #011432 0%, #052252 60%, #02122b 100%);
    color: #ffffff;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-left-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(13, 158, 55, 0.24) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-left-hero::after {
    content: '';
    position: absolute;
    bottom: -90px;
    left: -90px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.20) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-hero-brand { display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; }
.auth-hero-logo { height: 50px; width: auto; object-fit: contain; background: #ffffff; padding: 6px 12px; border-radius: var(--radius-sm); }
.auth-hero-title { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: #ffffff; margin: 0; }
.auth-hero-company { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin: 2px 0 0; }
.auth-hero-body { position: relative; z-index: 2; margin: 40px 0; max-width: 520px; }
.auth-hero-tagline { font-size: 34px; font-weight: 800; line-height: 1.22; color: #ffffff; margin-bottom: 24px; }
.auth-hero-tagline span { color: #4ade80; }
.auth-feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.auth-feature-item { display: flex; align-items: center; gap: 14px; }
.auth-feature-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(13, 158, 55, 0.2); color: #4ade80; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.auth-feature-text { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.auth-hero-footer { position: relative; z-index: 2; font-size: 12px; color: rgba(255, 255, 255, 0.62); }

.auth-right-container {
    width: 500px;
    background-color: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
}

.auth-card-modern {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
}

.auth-card-header { text-align: center; margin-bottom: 24px; }
.auth-card-header h2 { font-size: 22px; font-weight: 800; color: var(--brand-primary); margin: 0 0 6px; }
.auth-card-header p { font-size: 13px; color: var(--text-grey); margin: 0; }

.auth-mobile-brand {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-mobile-brand img {
    height: 38px;
    width: auto;
}

.auth-input-group,
.password-input-group {
    position: relative;
}

.auth-input-group .form-control { padding-left: 38px; }
.password-input-group .form-control { padding-left: 38px; padding-right: 42px; }

.auth-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover { color: var(--brand-primary); }

.auth-remember-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 22px; font-size: 13px; }
.auth-remember-label { display: flex; align-items: center; gap: 8px; color: var(--text-grey); cursor: pointer; user-select: none; }
.auth-forgot-link { font-size: 12.5px; color: var(--brand-primary); font-weight: 600; }
.auth-forgot-link:hover { text-decoration: underline; }
.auth-submit-btn { width: 100%; padding: 12px 18px; font-size: 14.5px; font-weight: 700; }

.auth-credentials-hint {
    margin-top: 22px;
    padding: 12px 14px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.auth-page {
    min-height: 100vh;
    background-color: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
}

.auth-header { text-align: center; margin-bottom: 22px; }
.auth-logo { height: 48px; width: auto; object-fit: contain; margin: 0 auto 12px; }
.auth-header h1 { font-size: 20px; font-weight: 800; color: var(--brand-primary); margin: 0 0 4px; }
.auth-header p { font-size: 12px; color: var(--text-grey); margin: 0; }
.auth-footer { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-color); }

/* ==========================================================================
   14. Empty States, Utilities & Print Styles
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-grey);
}

.empty-icon { font-size: 30px; color: var(--text-muted); margin-bottom: 10px; display: block; }
.empty-title { font-weight: 700; font-size: 15px; color: var(--brand-primary); margin-bottom: 4px; }
.empty-desc { font-size: 13px; color: var(--text-grey); margin-bottom: 16px; }

.inline-actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.text-truncate-remark { max-width: 150px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

.mr-1 { margin-right: 4px; }
.p-0 { padding: 0 !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-5 { padding-top: 36px !important; padding-bottom: 36px !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-success { color: var(--brand-success) !important; }
.text-danger { color: var(--status-danger) !important; }
.text-warning { color: var(--status-warning) !important; }
.text-primary { color: var(--brand-primary) !important; }
.text-secondary { color: var(--text-grey) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-sm { font-size: 13px !important; }
.text-xs { font-size: 11.5px !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }

/* Print Mode (e.g. Monthly Attendance Report) */
@media print {
    .app-sidebar,
    .sidebar-backdrop,
    .app-topbar,
    .app-footer,
    .page-header .btn,
    .page-header-actions,
    .no-print {
        display: none !important;
    }

    .app-main {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
    }
}
