/* =============================================
   CarMate CRM - Main Stylesheet
   ============================================= */

/* -- CSS Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #016c5c;
    --primary-dark: #014d42;
    --primary-light: #02a28a;
    --accent: #ffb90e;
    --accent-dark: #d99e00;
    --accent-light: #ffd45a;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --secondary: #6b7280;
    --dark: #1f2937;
    --light: #f5f7f6;
    --white: #ffffff;
    --border: #e0e5e3;
    --text: #2d3a36;
    --text-light: #7a8a84;
    --sidebar-width: 260px;
    --sidebar-bg: #013d34;
    --topbar-height: 60px;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(1,108,92,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(1,108,92,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-dark); }

/* -- Login Page -- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
}
.login-header { text-align: center; margin-bottom: 30px; }
.login-header h1 { color: var(--primary); font-size: 24px; margin-bottom: 4px; }
.login-header p { color: var(--text-light); font-size: 13px; }
.login-form .form-group { margin-bottom: 18px; }
.login-footer { text-align: center; margin-top: 24px; color: var(--text-light); }

/* -- Layout -- */
.app-wrapper { display: flex; min-height: 100vh; }

/* -- Sidebar -- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #c8ddd9;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}
.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 { font-size: 18px; color: var(--accent); }
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
.sidebar-user {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.user-avatar {
    width: 40px; height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--sidebar-bg);
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 14px; }
.user-role { font-size: 11px; color: var(--accent); text-transform: uppercase; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin: 2px 0; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #a8ccc5;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}
.nav-link.active {
    background: rgba(255,185,14,0.15);
    color: var(--accent);
    border-left-color: var(--accent);
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* -- Main Content -- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}
.topbar {
    height: var(--topbar-height);
    background: var(--white);
    border-bottom: 2px solid var(--border);
    border-image: linear-gradient(to right, var(--primary), var(--accent)) 1;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}
.page-title { font-size: 18px; font-weight: 700; flex: 1; }
.topbar-date { color: var(--text-light); font-size: 13px; }

.content-area { padding: 24px; }

/* -- Cards -- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #e6f5f2, #f5f7f6);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 { font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }

/* -- Metrics Grid -- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.metric-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.metric-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.metric-info h3 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.metric-info p { color: var(--text-light); font-size: 13px; }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--accent); }
.bg-info { background: var(--primary-light); }
.bg-secondary { background: var(--secondary); }

/* -- Row / Col Grid -- */
.row { display: flex; gap: 20px; flex-wrap: wrap; }
.col-4 { flex: 0 0 calc(33.333% - 14px); }
.col-6 { flex: 0 0 calc(50% - 10px); }
.col-8 { flex: 0 0 calc(66.666% - 6px); }
.col-12 { flex: 0 0 100%; }

/* -- Tables -- */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.table th {
    background: var(--light);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
.table tbody tr:hover { background: #f9fafb; }
.table-sm th, .table-sm td { padding: 6px 10px; font-size: 12px; }

.actions-cell {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.row-overdue { background: #fef2f2 !important; }
.row-completed { opacity: 0.7; }

/* -- Badges -- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--light);
    color: var(--text);
}
.badge-lg { font-size: 13px; padding: 5px 14px; }
.badge-sm { font-size: 10px; padding: 2px 8px; }
.badge-primary { background: #e6f5f2; color: var(--primary); }
.badge-success { background: #ecfdf5; color: #059669; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-info { background: #e6f5f2; color: var(--primary); }
.badge-secondary { background: #f3f4f6; color: #4b5563; }
.badge-converted { background: #fff8e1; color: #b8860b; border: 1px solid var(--accent); }

/* -- Buttons -- */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    line-height: 1.4;
    text-decoration: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--accent); color: #1a1a1a; }
.btn-info { background: var(--primary-light); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.btn-logout {
    background: rgba(239,68,68,0.2);
    color: #fca5a5;
    width: 100%;
    text-align: center;
}
.btn-logout:hover { background: rgba(239,68,68,0.4); }

/* -- Forms -- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: var(--white);
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1,108,92,0.15);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }

/* -- Filters -- */
.filter-form { margin: 0; }
.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group { flex: 1; min-width: 150px; }
.filter-group label { font-size: 12px; margin-bottom: 2px; }
.filter-actions {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    padding-bottom: 1px;
}

/* -- Alerts -- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
}
.alert-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.alert-info { background: #e6f5f2; color: var(--primary); border: 1px solid #a3d9cf; }

/* -- Modal -- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 16px; }
.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
}
.modal-body { padding: 20px; }
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* -- Tabs -- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}
.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* -- Timeline -- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.timeline-marker {
    position: absolute;
    left: -24px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
}
.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.timeline-time { color: var(--text-light); font-size: 12px; }
.timeline-body { font-size: 13px; color: var(--secondary); }

/* -- Comments -- */
.comment-form { margin-bottom: 20px; }
.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.comment-time { color: var(--text-light); font-size: 12px; }
.comment-actions { margin-left: auto; display: flex; gap: 4px; }
.comment-body { font-size: 13px; line-height: 1.5; }

/* -- Lead Detail -- */
.lead-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.lead-info-main { display: flex; align-items: center; gap: 12px; }
.lead-info-main h2 { font-size: 22px; }
.lead-actions-top { display: flex; gap: 8px; }

.detail-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.detail-item label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
}
.detail-item span { display: block; font-size: 14px; margin-top: 2px; }

/* -- Call Simulation -- */
.call-simulation {
    text-align: center;
    padding: 20px;
}
.call-avatar-lg {
    width: 80px; height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.call-phone { color: var(--text-light); font-size: 16px; }
.call-timer {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
    font-variant-numeric: tabular-nums;
}
.call-status { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.call-controls { display: flex; gap: 16px; justify-content: center; }

/* -- QA -- */
.qa-review-inline {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fefce8;
    border-radius: 6px;
    font-size: 12px;
}
.qa-stars { color: #f59e0b; font-size: 16px; }
.qa-feedback { color: var(--secondary); font-style: italic; margin-top: 2px; }

.star-rating { display: inline-flex; gap: 4px; font-size: 24px; cursor: pointer; }
.star-rating .star { color: #d1d5db; transition: color 0.2s; }
.star-rating .star.active { color: var(--accent); }
.star-rating .star:hover { color: var(--accent); }

/* -- Calendar -- */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.calendar-controls h2 { flex: 1; text-align: center; font-size: 20px; }
.calendar-view-toggle { display: flex; gap: 4px; }

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 12px;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend-today { background: var(--primary); }
.legend-overdue { background: var(--danger); }
.legend-completed { background: var(--success); }
.legend-pending { background: var(--warning); }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.calendar-header-cell {
    background: var(--sidebar-bg);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}
.calendar-cell {
    background: var(--white);
    min-height: 100px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.calendar-cell:hover { background: #f9fafb; }
.calendar-cell.other-month { background: #f9fafb; opacity: 0.5; }
.calendar-cell.today { background: #eef2ff; }
.calendar-cell .cell-date {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}
.calendar-cell.today .cell-date { color: var(--primary); }
.calendar-task {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-task.task-pending { background: #fef3c7; color: #92400e; }
.calendar-task.task-completed { background: #d1fae5; color: #065f46; }
.calendar-task.task-overdue { background: #fee2e2; color: #991b1b; }
.calendar-task { cursor: pointer; }
.calendar-task:hover { opacity: 0.85; }
.cal-lead-name { font-weight: 400; opacity: 0.75; }

.call-phone-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.call-phone-link:hover { text-decoration: underline; color: var(--primary-dark); }

.day-detail-panel {
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.day-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* -- Chart (simple) -- */
.chart-container { padding: 10px 0; }
.chart-bar-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.chart-label { min-width: 110px; font-size: 13px; text-align: right; }
.chart-bar-wrap {
    flex: 1;
    background: var(--light);
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
}
.chart-bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    min-width: 30px;
    transition: width 0.5s ease;
}

/* -- Pagination -- */
.pagination-nav { margin-top: 16px; display: flex; justify-content: center; }
.pagination {
    display: flex;
    list-style: none;
    gap: 4px;
}
.pagination li { display: inline-block; }
.pagination li a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}
.pagination li a:hover { background: var(--light); }
.pagination li.active a {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================
   NOTIFICATIONS
   ============================================= */

/* -- Bell Button -- */
.notif-bell-wrapper {
    position: relative;
    display: inline-block;
}
.notif-bell {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    color: var(--text);
    transition: color 0.2s;
}
.notif-bell:hover { color: var(--primary); }
.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

/* -- Dropdown -- */
.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 1000;
    overflow: hidden;
}
.notif-dropdown.active { display: block; }
.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--light);
}
.notif-dropdown-header strong { font-size: 14px; }
.notif-dropdown-list {
    max-height: 360px;
    overflow-y: auto;
}
.notif-dropdown-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--light);
}

/* -- Dropdown Item -- */
.notif-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.notif-dropdown-item:last-child { border-bottom: none; }
.notif-dropdown-item:hover { background: var(--light); }
.notif-dropdown-item.notif-unread { background: #e6f5f2; }
.notif-dropdown-item.notif-unread:hover { background: #ccebe5; }

.notif-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    flex-shrink: 0;
}
.notif-unread .notif-icon {
    background: #ccebe5;
}
.notif-content { flex: 1; min-width: 0; }
.notif-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notif-message {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}
.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

/* -- Notifications Full Page -- */
.notifications-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.notifications-page-header h2 { margin: 0; }
.notifications-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.notif-page-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    transition: background 0.15s;
}
.notif-page-item:last-child { border-bottom: none; }
.notif-page-item:hover { background: var(--light); }
.notif-page-item.notif-unread { background: #e6f5f2; border-left: 3px solid var(--accent); }
.notif-page-item.notif-unread:hover { background: #ccebe5; }
.notif-page-item .notif-content { flex: 1; }
.notif-page-item .notif-title { font-size: 14px; white-space: normal; }
.notif-page-item .notif-message { font-size: 13px; -webkit-line-clamp: 3; }
.notif-page-item .notif-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: flex-start;
}
.notif-type-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    background: var(--light);
    color: var(--secondary);
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: capitalize;
    vertical-align: middle;
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .notif-dropdown {
        width: 320px;
        right: -60px;
    }
    .notifications-page-header { flex-direction: column; align-items: flex-start; }
    .notif-page-item { flex-direction: column; gap: 8px; }
    .notif-page-item .notif-actions { align-self: flex-end; }
}

/* -- Toast -- */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    display: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}
.toast.toast-success { background: var(--success); display: block; }
.toast.toast-error { background: var(--danger); display: block; }

/* -- Utility -- */
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* -- Responsive -- */
@media (max-width: 1024px) {
    .col-4, .col-6, .col-8 { flex: 0 0 100%; }
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .hamburger { display: block; }
    .main-content { margin-left: 0; }
    .filter-row { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .metric-card { flex-direction: column; text-align: center; }
    .lead-detail-header { flex-direction: column; align-items: flex-start; }
    .calendar-cell { min-height: 60px; }
}
