/* ============================================================
   Bata Franchise Lead Manager — Complete Stylesheet
   Brand Colors: Bata Red #E31837, Dark #1A1A2E
   ============================================================ */

/* ----- Google Font ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --bata-red: #E31837;
    --bata-red-dark: #B91430;
    --bata-red-light: #FF3D57;
    --bata-red-bg: #FFF0F2;

    --dark: #1A1A2E;
    --dark-2: #16213E;
    --dark-3: #0F3460;

    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --white: #FFFFFF;
    --success: #059669;
    --success-bg: #D1FAE5;
    --warning: #D97706;
    --warning-bg: #FEF3C7;
    --danger: #DC2626;
    --danger-bg: #FEE2E2;
    --info: #2563EB;
    --info-bg: #DBEAFE;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.12);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.18);

    --transition: all 0.2s ease;
    --transition-slow: all 0.35s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--bata-red);
    text-decoration: none;
}

::selection {
    background: var(--bata-red);
    color: var(--white);
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: white;
    padding: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.logo {
    display: none; /* Hidden — replaced by .header-logo-img */
    font-family: 'Georgia', serif;
    font-size: 1.7rem;
    font-weight: 800;
    font-style: italic;
    color: var(--white);
    background: var(--bata-red);
    padding: 3px 16px 5px;
    border-radius: var(--radius-sm);
    letter-spacing: -0.5px;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.header-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-700);
}

.header-subtitle {
    font-size: 0.72rem;
    color: var(--gray-400);
    font-weight: 400;
}

.header-nav {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.nav-btn:hover {
    color: var(--gray-800);
    background: var(--white);
}

.nav-btn.active {
    background: var(--white);
    color: var(--bata-red);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.nav-badge {
    background: var(--bata-red);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--bata-red);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(227, 24, 55, 0.3);
}

.btn-primary:hover {
    background: var(--bata-red-dark);
    box-shadow: 0 4px 14px rgba(227, 24, 55, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #B91C1C;
}

.btn-link {
    background: none;
    border: none;
    color: var(--bata-red);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 4px 0;
    font-family: inherit;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.btn-icon {
    padding: 8px 10px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.view {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.view.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   DASHBOARD — STATS CARDS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.total { background: #EEF2FF; color: #4F46E5; }
.stat-icon.active { background: #DBEAFE; color: #2563EB; }
.stat-icon.today { background: #D1FAE5; color: #059669; }
.stat-icon.overdue { background: #FEE2E2; color: #DC2626; }
.stat-icon.won { background: #FEF3C7; color: #D97706; }
.stat-icon.conversion { background: #F3E8FF; color: #7C3AED; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
}

.highlight-pulse {
    animation: pulse 2s ease-in-out infinite;
    border-color: var(--success) !important;
}

.highlight-warning {
    animation: pulse-warning 2s ease-in-out infinite;
    border-color: var(--danger) !important;
}

@keyframes pulse {
    0%, 100% { box-shadow: var(--shadow-sm); }
    50% { box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12), var(--shadow-sm); }
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: var(--shadow-sm); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12), var(--shadow-sm); }
}

/* ============================================================
   DASHBOARD — PIPELINE
   ============================================================ */
.section {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

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

.section-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
}

.badge {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.badge-today { background: var(--success-bg); color: var(--success); }
.badge-overdue { background: var(--danger-bg); color: var(--danger); }

.pipeline-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pipeline-row {
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.pipeline-row:hover {
    background: var(--gray-50);
}

.pipeline-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pipeline-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pipeline-count {
    margin-left: auto;
    font-weight: 700;
    color: var(--gray-700);
}

.pipeline-bar-bg {
    height: 8px;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
}

.pipeline-bar-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 0.6s ease;
    min-width: 0;
}

/* ============================================================
   DASHBOARD — MINI CARDS
   ============================================================ */
.mini-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.mini-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.mini-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
}

.mini-card-overdue {
    border-left: 3px solid var(--danger);
    background: #FFF8F8;
}

.mini-card-today {
    border-left: 3px solid var(--success);
    background: #F0FFF6;
}

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

.mini-card-top strong {
    font-size: 0.92rem;
}

.mini-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.mini-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.empty-text {
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 12px 0;
    text-align: center;
}

/* ============================================================
   STATUS PILLS BAR (Category Filter)
   ============================================================ */
.status-pills-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.status-pill:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.status-pill.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.25);
    font-weight: 600;
}

.status-pill.active[data-status="New"] { background: #4F46E5; border-color: #4F46E5; }
.status-pill.active[data-status="Potential"] { background: #D97706; border-color: #D97706; }
.status-pill.active[data-status="Interested"] { background: #2563EB; border-color: #2563EB; }
.status-pill.active[data-status="Onboarded"] { background: #059669; border-color: #059669; }
.status-pill.active[data-status="Not Interested"] { background: #DC2626; border-color: #DC2626; }

.pill-count {
    display: inline-block;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-700);
}

.status-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* ============================================================
   LEADS VIEW — TOOLBAR
   ============================================================ */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 270px;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 8px 70px 8px 34px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.84rem;
    font-family: inherit;
    background: var(--gray-50);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--bata-red);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
    background: var(--white);
}

.search-lead-count {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-200);
    padding: 2px 7px;
    border-radius: 50px;
    pointer-events: none;
    white-space: nowrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-badge-select {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2px 6px 2px 10px;
    font-size: 0.82rem;
    transition: var(--transition);
}

.filter-badge-select:hover {
    background: var(--white);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.filter-badge-select:focus-within {
    border-color: var(--bata-red);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
    background: var(--white);
}

.filter-badge-select label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
}

.filter-badge-select select {
    border: none;
    background: transparent;
    padding: 6px 2px;
    font-size: 0.82rem;
    font-family: inherit;
    color: var(--gray-800);
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.toggle-group-btn {
    padding: 7px 11px;
}

.toggle-group-btn.active {
    background: var(--bata-red-bg);
    color: var(--bata-red);
    border-color: #FFCDD2;
    font-weight: 600;
}

.toolbar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.toolbar-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.status-group-row td {
    background: #F8FAFC !important;
    padding: 10px 16px !important;
    border-top: 2px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.status-group-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.status-group-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--gray-200);
}

.card-status-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 16px 0 10px 0;
    background: #F8FAFC;
    border-radius: var(--radius);
    border-left: 4px solid var(--gray-400);
    box-shadow: var(--shadow-sm);
}

.card-status-group-header:first-child {
    margin-top: 4px;
}

/* ============================================================
   LEADS TABLE
   ============================================================ */
.leads-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.leads-table-scroll {
    overflow-x: auto;
    width: 100%;
}

.leads-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
    table-layout: fixed;
}

.leads-table thead th {
    background: #F8FAFC;
    padding: 11px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
}

.leads-table thead th:last-child {
    border-right: none;
}

.leads-table thead th.sortable {
    cursor: pointer;
    transition: var(--transition);
}

.leads-table thead th.sortable:hover {
    color: var(--bata-red);
    background: var(--gray-100);
}

.leads-table thead th.sortable::after {
    content: ' ↕';
    font-size: 0.68rem;
    opacity: 0.4;
}

.leads-table thead th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
    color: var(--bata-red);
}

.leads-table thead th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
    color: var(--bata-red);
}

.leads-table tbody tr {
    border-bottom: 1px solid #EEF2F6;
    transition: background 0.15s ease;
    cursor: pointer;
}

.leads-table tbody tr:hover {
    background: #F8FAFC !important;
}

.leads-table tbody td {
    padding: 10px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
}

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

/* Column standard sizes & alignments (Strictly enforced via table-layout: fixed) */
.leads-table th.col-checkbox,
.leads-table td.col-checkbox {
    width: 36px;
    text-align: center;
    padding: 10px 4px !important;
}

.col-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--bata-red);
    margin: 0 auto;
    display: block;
}

.leads-table th.col-sn,
.leads-table td.col-sn {
    width: 44px;
    text-align: center;
    padding: 10px 4px !important;
}

.leads-table th.col-name,
.leads-table td.col-name {
    width: 165px;
    padding: 10px 10px !important;
}

.leads-table th.col-contact,
.leads-table td.col-contact {
    width: 125px;
    padding: 10px 10px !important;
}

.leads-table th.col-place,
.leads-table td.col-place,
.leads-table th.col-place-ready,
.leads-table td.col-place-ready {
    width: 75px;
    text-align: center;
    padding: 10px 4px !important;
}

.leads-table th.col-status-meets,
.leads-table td.col-status-meets {
    width: 140px;
    padding: 10px 8px !important;
}

.leads-table th.col-investment,
.leads-table td.col-investment {
    width: 140px;
    text-align: center;
    padding: 10px 8px !important;
}

.leads-table th.col-feedback,
.leads-table td.col-feedback {
    /* Feedback absorbs all remaining flexible width */
    width: auto;
    padding: 10px 16px !important;
}

.leads-table th.col-next-meeting,
.leads-table td.col-next-meeting {
    width: 110px;
    text-align: center;
    padding: 10px 6px !important;
}

.leads-table th.col-actions,
.leads-table td.col-actions {
    width: 130px;
    text-align: center;
    padding: 10px 4px !important;
}

/* Individual Cell Components */
.lead-name-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lead-name-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    display: inline-block;
    max-width: 100%;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.lead-name-text:hover {
    color: var(--bata-red);
    text-decoration: underline;
}

.lead-area-text {
    font-size: 0.74rem;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-contact-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.phone-link {
    color: #1D4ED8;
    font-weight: 600;
    font-size: 0.84rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.phone-link:hover {
    color: var(--bata-red);
    text-decoration: underline;
}

.contact-quick-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.76rem;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1;
    transition: var(--transition);
}

.mini-icon-btn:hover {
    background: var(--gray-200);
    transform: scale(1.15);
}

/* Place Ready badges */
.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.store-yes {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.store-no {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

/* Combined Status & Meets */
.status-meets-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.times-met-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 2px 4px 2px 6px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #1D4ED8;
    white-space: nowrap;
    flex-shrink: 0;
}

.times-met-pill {
    white-space: nowrap;
}

.btn-step-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid #93C5FD;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1D4ED8;
    cursor: pointer;
    transition: var(--transition);
}

.btn-step-mini:hover {
    background: var(--bata-red);
    border-color: var(--bata-red);
    color: var(--white);
    transform: scale(1.1);
}

/* Feedback Cell - Long, highly readable */
.feedback-cell-content {
    color: var(--gray-700);
    font-size: 0.83rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    transition: color 0.15s ease;
}

.feedback-cell-content:hover {
    color: var(--gray-900);
}

/* Next Meeting Cell */
.next-meeting-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.meeting-date-val {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.meeting-sub-tag {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.overdue-tag {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.today-tag {
    background: #D1FAE5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

/* Row Highlights */
.row-overdue {
    background: #FFF8F8 !important;
}

.row-today {
    background: #F0FFF6 !important;
}

.date-overdue {
    color: var(--danger) !important;
    font-weight: 600;
}

.date-today {
    color: var(--success) !important;
    font-weight: 600;
}

.flash-highlight {
    animation: flashBg 0.5s ease 3;
}

@keyframes flashBg {
    0%, 100% { background: inherit; }
    50% { background: #FEF3C7; }
}

/* Financial values */
.financial-val {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.investment-val {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.sales-val {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* ============================================================
   SCREENSHOT MODE STYLES
   ============================================================ */
.screenshot-header-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 3px solid var(--bata-red);
}

.screenshot-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.screenshot-bata-brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 800;
    font-style: italic;
    color: var(--white);
    background: var(--bata-red);
    padding: 2px 14px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(227, 24, 55, 0.4);
}

.screenshot-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.3px;
}

.screenshot-banner-sub {
    font-size: 0.76rem;
    color: #94A3B8;
}

.screenshot-banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshot-banner-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #E2E8F0;
}

.screenshot-btn-exit {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    font-weight: 600 !important;
    border-radius: var(--radius) !important;
    cursor: pointer;
    transition: var(--transition);
}

.screenshot-btn-exit:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

body.screenshot-mode .header,
body.screenshot-mode .status-pills-bar,
body.screenshot-mode .toolbar,
body.screenshot-mode .bulk-actions,
body.screenshot-mode .col-checkbox,
body.screenshot-mode .col-actions,
body.screenshot-mode .mobile-nav {
    display: none !important;
}

body.screenshot-mode .screenshot-header-banner {
    display: flex !important;
}

body.screenshot-mode .leads-table-wrapper {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--gray-300);
}

body.screenshot-mode .leads-table tbody tr {
    cursor: default;
}

@media print {
    body.screenshot-mode .print-hide,
    .print-hide {
        display: none !important;
    }
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 16px 0;
    width: 100%;
}

.radio-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.radio-card:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.radio-card:has(input:checked) {
    border-color: var(--bata-red);
    background: #FFF5F5;
}

.radio-card input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    accent-color: var(--bata-red);
    cursor: pointer;
    flex: 0 0 18px !important;
}

.radio-card input[type="radio"]:focus,
.radio-card input[type="radio"]:focus-visible {
    outline: 2px solid var(--bata-red);
    outline-offset: 2px;
    box-shadow: none !important;
}

.radio-content {
    flex: 1 1 auto;
    min-width: 0;
}

.radio-content strong {
    display: block;
    font-size: 0.88rem;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: 2px;
}

.radio-content small {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.4;
    margin-top: 2px;
}

.template-download-box {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.template-download-box small {
    color: var(--gray-600);
    font-weight: 500;
}

.template-download-box .btn-link {
    color: var(--bata-red);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: underline;
}

/* ============================================================
   EXPORT DATE FILTER & SUMMARY STYLES (UNIVERSAL TO ALL EXPORTS)
   ============================================================ */
.export-date-filter-section {
    margin-top: 14px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.export-date-filter-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.export-date-filter-subtitle {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 10px;
    display: block;
}

.export-date-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.date-preset-pill {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.date-preset-pill:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.date-preset-pill.active {
    background: var(--bata-red);
    color: var(--white);
    border-color: var(--bata-red);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(227, 24, 55, 0.3);
}

.export-date-inputs-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    background: var(--white);
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.export-date-input-group {
    flex: 1 1 130px;
    min-width: 120px;
}

.export-date-input-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    display: block;
    margin-bottom: 4px;
}

.export-date-input-group input[type="date"] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-family: inherit;
    box-sizing: border-box;
    background: var(--white);
}

.export-date-input-group input[type="date"]:focus {
    border-color: var(--bata-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 24, 55, 0.15);
}

.export-live-summary {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 14px;
    font-size: 0.84rem;
    transition: var(--transition);
}

.export-live-summary.success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.export-live-summary.warning {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

/* ============================================================
   STATUS & STORE BADGES
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.store-badge {
    font-size: 0.82rem;
    font-weight: 500;
}

.store-yes { color: var(--success); }
.store-no { color: var(--gray-400); }

/* ============================================================
   ACTION BUTTONS (in-row)
   ============================================================ */
.action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.header-brochure-btn {
    background: #FFF0F2 !important;
    color: var(--bata-red) !important;
    border: 1px solid #FFCDD2 !important;
    font-weight: 600 !important;
}

.header-brochure-btn:hover {
    background: #FFE5E8 !important;
    color: var(--bata-red-dark) !important;
    border-color: var(--bata-red) !important;
}

.sl-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.times-met-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.times-met-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-step-mini {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-700);
    transition: var(--transition);
}

.btn-step-mini:hover {
    background: var(--bata-red);
    color: var(--white);
    border-color: var(--bata-red);
    transform: scale(1.08);
}

/* Stepper inside form */
.stepper-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stepper-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--gray-700);
    transition: var(--transition);
    user-select: none;
}

.stepper-btn:hover {
    background: var(--bata-red);
    color: var(--white);
    border-color: var(--bata-red);
}

.stepper-input {
    width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 4px !important;
}

.action-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.76rem;
    flex-shrink: 0;
    padding: 0;
}

.action-btn:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.action-btn svg {
    width: 12px;
    height: 12px;
}

/* Crisp, high-contrast action button colors */
.action-btn.call { background: #EFF6FF; color: #2563EB; border-color: #BFDBFE; }
.action-btn.whatsapp { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.action-btn.brochure { background: #FAF5FF; color: #7C3AED; border-color: #DDD6FE; }
.action-btn.edit { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }
.action-btn.delete { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }

.action-btn.call:hover { background: #DBEAFE; color: #1D4ED8; }
.action-btn.whatsapp:hover { background: #D1FAE5; color: #047857; }
.action-btn.brochure:hover { background: #F3E8FF; color: #6D28D9; }
.action-btn.edit:hover { background: #FEF3C7; color: #B45309; }
.action-btn.delete:hover { background: #FEE2E2; color: #B91C1C; }

/* ============================================================
   LEAD CARDS (Mobile)
   ============================================================ */
.leads-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.lead-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lead-card:hover {
    box-shadow: var(--shadow);
}

.lead-card:active {
    transform: scale(0.99);
}

.card-overdue { border-left: 4px solid var(--danger); }
.card-today { border-left: 4px solid var(--success); }

.lead-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.lead-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    cursor: pointer;
    transition: color 0.15s ease;
}

.lead-card-name:hover {
    color: var(--bata-red);
}

.lead-card-phone {
    font-size: 0.85rem;
    color: var(--info);
    font-weight: 500;
}

.lead-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.lead-card-detail {
    font-size: 0.82rem;
    color: var(--gray-600);
}

.detail-label {
    font-weight: 500;
    color: var(--gray-500);
}

.lead-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-action-btn {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: inherit;
    white-space: nowrap;
}

.card-action-btn:hover { background: var(--gray-100); }
.card-action-btn.call:hover { background: #DBEAFE; border-color: #93C5FD; }
.card-action-btn.whatsapp:hover { background: #D1FAE5; border-color: #6EE7B7; }
.card-action-btn.brochure:hover { background: #F3E8FF; border-color: #C4B5FD; }
.card-action-btn.delete:hover { background: #FEE2E2; border-color: #FCA5A5; color: var(--danger); }

/* ============================================================
   BULK ACTIONS BAR
   ============================================================ */
.bulk-actions {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 0.88rem;
    animation: slideDown 0.25s ease;
}

.bulk-actions.show {
    display: flex;
}

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

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-table {
    text-align: center;
    padding: 48px 16px !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--gray-700);
}

.empty-state p {
    font-size: 0.88rem;
    color: var(--gray-400);
    margin-bottom: 8px;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 12px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 14px;
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 580px; }
.modal-lg { max-width: 760px; }

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: #FAFAFA;
    flex-shrink: 0;
}

.modal-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.modal-subtitle-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.modal-lead-name-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--gray-200);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

.modal-meta-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 6px 20px;
    background: #F1F5F9;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.75rem;
    color: var(--gray-600);
    flex-shrink: 0;
}

.meta-strip-item strong {
    color: var(--gray-800);
}

.modal-body {
    padding: 14px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-flex-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.modal-scroll-body,
.modal-scroll-area {
    padding: 14px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* ============================================================
   FORMS & COMPACT PRIORITY GRIDS
   ============================================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

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

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

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--gray-700);
}

.required {
    color: var(--bata-red);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group select {
    height: 36px;
    padding: 6px 11px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    width: 100%;
}

.form-group textarea {
    padding: 8px 11px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    width: 100%;
    resize: vertical;
    min-height: 52px;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bata-red);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.12);
    background: var(--white);
}

.form-actions,
.modal-footer.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid var(--gray-200);
    background: #F8FAFC;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.modal-footer-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn-save {
    background: var(--bata-red) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(227, 24, 55, 0.25);
}

.btn-outline-danger {
    background: transparent;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.btn-outline-danger:hover {
    background: #FEF2F2;
    border-color: #DC2626;
}

/* ============================================================
   PLACE TICK / CROSS BADGES
   ============================================================ */
.place-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    margin: 0 auto;
}

.place-icon-badge.place-yes {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.place-icon-badge.place-no {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

/* ============================================================
   LEAD HOVER CARD (All info preview popover)
   ============================================================ */
.lead-hover-card {
    position: fixed;
    z-index: 2500;
    width: 330px;
    pointer-events: none;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
    animation: fadeIn 0.15s ease-out;
}

.hover-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hover-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 6px;
}

.hover-lead-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.hover-lead-profession {
    font-size: 0.74rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hover-card-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    font-size: 0.76rem;
}

.hover-meta-item {
    display: flex;
    flex-direction: column;
}

.hover-label {
    color: var(--gray-500);
    font-size: 0.69rem;
    font-weight: 600;
}

.hover-val {
    color: var(--gray-800);
    font-weight: 600;
}

.hover-card-notes {
    background: #F8FAFC;
    border-radius: 6px;
    padding: 6px 8px;
    border: 1px solid var(--gray-200);
    font-size: 0.74rem;
}

.hover-notes-content {
    color: var(--gray-700);
    margin-top: 2px;
    line-height: 1.35;
    max-height: 60px;
    overflow-y: hidden;
    text-overflow: ellipsis;
}

.hover-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--gray-400);
    border-top: 1px solid var(--gray-100);
    padding-top: 4px;
}

/* ============================================================
   CALENDAR VIEW STYLING
   ============================================================ */
.calendar-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    margin-top: 8px;
}

.calendar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    padding: 16px;
}

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

.calendar-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cal-nav-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.calendar-title {
    font-size: 1.15rem;
    font-weight: 700;
    min-width: 170px;
    text-align: center;
    margin: 0;
    color: var(--dark);
}

.cal-today-btn {
    padding: 5px 12px;
    border: 1px solid var(--bata-red);
    color: var(--bata-red);
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.cal-today-btn:hover {
    background: var(--bata-red-bg);
}

.calendar-stats-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cal-counter-badge {
    font-size: 0.8rem;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.calendar-week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 6px;
}

.calendar-week-header .cal-holiday-header {
    color: #DC2626 !important;
    font-weight: 800;
}

.calendar-week-header .cal-sunday-header {
    color: var(--gray-800);
    font-weight: 800;
}

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

.calendar-day {
    min-height: 80px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 6px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-day:hover {
    background: #F0F9FF;
    border-color: #38BDF8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.calendar-day.other-month {
    background: #FAFAFA;
    opacity: 0.45;
}

.calendar-day.today-day {
    border: 2px solid var(--bata-red);
    background: #FFF5F6;
}

.calendar-day.friday-holiday {
    background: #FFF9F9;
    border-color: #FECACA;
}

.calendar-day.friday-holiday:hover {
    background: #FEF2F2;
    border-color: #F87171;
}

.calendar-day.friday-holiday .day-number {
    color: #DC2626;
}

.calendar-day.selected-day {
    background: #EFF6FF !important;
    border: 2px solid #2563EB !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.day-number {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.today-chip {
    background: var(--bata-red);
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 700;
}

.holiday-chip {
    background: #FEE2E2;
    color: #DC2626;
    font-size: 0.62rem;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #FECACA;
}

.holiday-notice-banner {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-meeting-pill {
    display: inline-block;
    background: #2563EB;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 2px;
}

.day-followup-pill {
    display: inline-block;
    background: #0D9488;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 2px;
}

.day-leads-dots {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 3px;
}

.lead-dot-name {
    font-size: 0.68rem;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0,0,0,0.04);
    padding: 1px 4px;
    border-radius: 3px;
}

.lead-dot-more {
    font-size: 0.65rem;
    font-weight: 700;
    color: #2563EB;
}

/* Calendar Sidebar Panel */
.calendar-sidebar-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: calc(100vh - 120px);
}

.sidebar-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    background: #F8FAFC;
}

.panel-date-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.panel-meeting-count {
    font-size: 0.74rem;
    color: var(--gray-500);
}

.sidebar-meetings-list {
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.panel-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.panel-meeting-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.panel-meeting-item:hover {
    border-color: #2563EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.meeting-lead-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.meeting-lead-prof {
    font-size: 0.72rem;
    color: var(--gray-500);
}

.meeting-item-phone {
    font-size: 0.78rem;
    color: var(--gray-600);
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
}

.meeting-times-held {
    font-weight: 600;
    color: #D97706;
}

.meeting-item-feedback {
    font-size: 0.74rem;
    color: var(--gray-700);
    background: var(--gray-50);
    padding: 5px 8px;
    border-radius: 4px;
    margin: 6px 0;
    border-left: 2px solid #2563EB;
}

.meeting-item-feedback.followup-accent {
    border-left-color: #0D9488;
}

.panel-followup-item {
    background: #fff;
    border: 1px solid #CCFBF1;
    border-left: 3px solid #0D9488;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.panel-followup-item:hover {
    border-color: #0D9488;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}

.panel-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
    margin: 10px 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-main-text {
    color: var(--gray-800);
    line-height: 1.35;
    font-size: 0.82rem;
}

.notes-sub-text {
    margin-top: 4px;
    font-size: 0.74rem;
    color: #374151;
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    border-left: 2px solid #6366F1;
}

.notes-icon-tag {
    font-weight: 700;
    color: #4F46E5;
}

.schedule-type-selector {
    display: flex;
    gap: 10px;
}

.schedule-type-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    transition: var(--transition);
}

.schedule-type-pill:has(input:checked) {
    background: #EFF6FF;
    border-color: #2563EB;
    color: #1D4ED8;
}

.meeting-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.meeting-item-actions .action-btn {
    width: auto;
    height: 26px;
    padding: 0 8px;
    font-size: 0.72rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn.remove-meeting {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
    margin-left: auto;
}

.action-btn.remove-meeting:hover {
    background: #DC2626;
    color: #fff;
}

.empty-panel-state {
    text-align: center;
    padding: 30px 10px;
}

.empty-calendar-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.empty-panel-text {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.panel-empty-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.import-filter-banner {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .calendar-container {
        grid-template-columns: 1fr;
    }
    .form-grid-3, .form-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CHECKBOX GROUP (Export Modal)
   ============================================================ */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
}

.checkbox-group hr {
    border: none;
    border-top: 1px solid var(--gray-100);
    margin: 4px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.checkbox-label:hover {
    background: var(--gray-50);
}

.checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    accent-color: var(--bata-red);
    cursor: pointer;
    flex: 0 0 18px !important;
}

/* ============================================================
   IMPORT ZONE
   ============================================================ */
.import-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-bottom: 16px;
}

.import-zone:hover,
.import-zone.drag-over {
    border-color: var(--bata-red);
    background: var(--bata-red-bg);
}

.import-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.import-info {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 14px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

/* ============================================================
   TEMPLATES GRID
   ============================================================ */
.templates-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.template-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.template-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.template-preview {
    padding: 12px 14px;
    font-size: 0.78rem;
    color: var(--gray-500);
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.5;
    max-height: 120px;
    overflow: hidden;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gray-300);
    font-size: 0.88rem;
    transform: translateX(110%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; color: var(--gray-700); }

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 2px;
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--bata-red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-muted { color: var(--gray-400); }
.text-small { font-size: 0.78rem; }
.hidden { display: none !important; }

/* Global Header Mobile Search Button (hidden on desktop) */
.mobile-search-btn {
    display: none;
}

/* ============================================================
   TODAY'S SCHEDULED MEETINGS (Dashboard Homepage Section)
   ============================================================ */
.today-meetings-section {
    margin-bottom: 24px;
}

.section-subtitle-text {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

.badge-meeting-active {
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
    border: 1px solid #BFDBFE !important;
}

.today-meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.today-meeting-card {
    background: var(--white);
    border: 1.5px solid #BFDBFE;
    border-left: 4px solid #2563EB;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.today-meeting-card:hover {
    border-color: #2563EB;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.today-meeting-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.today-meeting-lead-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.today-meeting-lead-sub {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.prof-tag {
    color: var(--gray-700);
    font-weight: 600;
}

.today-meeting-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.8rem;
    color: var(--gray-600);
    padding: 8px 10px;
    background: #F8FAFC;
    border-radius: 6px;
}

.today-meeting-note-box {
    background: #EFF6FF;
    border-left: 3px solid #3B82F6;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--gray-700);
}

.today-meeting-note-box.agenda-box {
    background: #F0FDF4;
    border-left-color: #22C55E;
}

.today-meeting-note-box .note-label {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: var(--gray-900);
    font-size: 0.74rem;
}

.today-meeting-note-box p {
    margin: 0;
    line-height: 1.4;
}

.today-meeting-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.today-meeting-card-actions .action-btn {
    flex: 1;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 0 10px;
    white-space: nowrap;
}

.today-meeting-card-actions .cal-btn {
    background: #F1F5F9;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.today-meeting-card-actions .cal-btn:hover {
    background: var(--gray-200);
}

.empty-meetings-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F8FAFC;
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}

.empty-meetings-icon {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.empty-meetings-text {
    flex: 1;
}

.empty-meetings-text strong {
    font-size: 0.92rem;
    color: var(--gray-800);
}

.empty-meetings-text p {
    margin: 2px 0 0 0;
}

/* ============================================================
   SETTINGS & TOOLS HUB MODAL
   ============================================================ */
.settings-hub-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.settings-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.settings-tool-card:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateX(2px);
}

.settings-tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.settings-tool-text {
    flex: 1;
    min-width: 0;
}

.settings-tool-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--gray-900);
}

.settings-tool-text small {
    display: block;
    font-size: 0.77rem;
    color: var(--gray-500);
    margin-top: 1px;
}

.settings-tool-arrow {
    font-size: 1.3rem;
    color: var(--gray-400);
    font-weight: 300;
}

.settings-status-box {
    background: #F1F5F9;
    border-radius: var(--radius);
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
}

.settings-status-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.settings-status-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.settings-status-stats strong {
    color: var(--gray-900);
}

/* ============================================================
   MOBILE BOTTOM NAV (5 balanced tabs)
   ============================================================ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    z-index: 100;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
}

.mobile-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    width: 100%;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: none;
    background: none;
    color: var(--gray-500);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.mobile-nav-btn .nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-nav-btn.active {
    color: var(--bata-red);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .header-title {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        overflow-x: hidden;
    }

    .header {
        padding: 0 12px;
        height: 56px;
    }

    .header-nav {
        display: none !important;
    }

    .desktop-only-btn {
        display: none !important;
    }

    .mobile-search-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--radius);
        background: var(--gray-100);
        border: 1px solid var(--gray-300);
        font-size: 1rem;
        cursor: pointer;
        color: var(--gray-700);
        transition: var(--transition);
        margin-right: 2px;
    }

    .mobile-search-btn:active {
        background: var(--gray-200);
        transform: scale(0.95);
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .header-actions .btn span.btn-text {
        display: none;
    }

    .header-actions #addLeadBtn {
        height: 36px;
        padding: 0 12px;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .mobile-nav {
        display: block !important;
    }

    .view {
        padding: 10px;
        padding-bottom: 84px;
        overflow-x: hidden;
    }

    /* Dashboard mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .stat-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .today-meetings-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .today-meeting-card {
        padding: 12px;
    }

    .today-meeting-card-meta {
        font-size: 0.76rem;
        gap: 4px 10px;
    }

    .empty-meetings-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .mini-cards {
        grid-template-columns: 1fr;
    }

    /* Switch to card view on mobile */
    .leads-table-wrapper {
        display: none !important;
    }

    .leads-cards {
        display: flex !important;
    }

    /* Status Pills on mobile: smooth horizontal scrolling */
    .status-pills-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 6px;
    }

    .status-pill {
        white-space: nowrap;
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    /* Toolbar responsive: FIX 200px VOID BUG FROM SCREENSHOT 1 */
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 8px;
    }

    .search-box {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
    }

    .search-box input {
        width: 100% !important;
        height: 40px !important;
        font-size: 0.88rem !important;
        padding: 8px 76px 8px 36px !important;
    }

    .search-box::before {
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 12px !important;
    }

    .search-lead-count {
        top: 50% !important;
        transform: translateY(-50%) !important;
        right: 10px !important;
        font-size: 0.72rem !important;
        padding: 2px 7px !important;
    }

    .filter-group {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-badge-select {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .filter-badge-select select {
        width: 100%;
        font-size: 0.78rem;
        height: 36px;
    }

    .toggle-group-btn {
        flex: 1 1 100%;
        height: 34px;
        font-size: 0.8rem;
        justify-content: center;
    }

    /* Hide redundant desktop toolbar action buttons on mobile - all tools are now in bottom Settings */
    .toolbar-actions {
        display: none !important;
    }

    /* CALENDAR MOBILE FIX: PREVENT OVERFLOW FROM SCREENSHOT 2 */
    .calendar-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .calendar-card {
        padding: 10px 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .calendar-header-bar {
        margin-bottom: 8px !important;
        gap: 6px !important;
    }

    .calendar-nav-group {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .calendar-title {
        min-width: 0 !important;
        font-size: 0.95rem !important;
        text-align: center;
    }

    .calendar-stats-group {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .calendar-week-header {
        font-size: 0.68rem !important;
        padding-bottom: 4px !important;
        gap: 1px !important;
        margin-bottom: 4px !important;
    }

    .cal-holiday-header .holiday-label {
        display: none !important;
    }

    .calendar-grid {
        gap: 2px !important;
        width: 100% !important;
    }

    .calendar-day {
        min-height: 52px !important;
        padding: 2px !important;
        border-radius: 5px !important;
        font-size: 0.72rem !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .calendar-day .day-header {
        margin-bottom: 2px;
    }

    .calendar-day .day-number {
        font-size: 0.74rem !important;
    }

    .calendar-day .today-chip {
        font-size: 0.54rem !important;
        padding: 0 3px !important;
    }

    .calendar-day .holiday-chip {
        font-size: 0.52rem !important;
        padding: 0 2px !important;
    }

    .calendar-day .day-meeting-pill,
    .calendar-day .day-followup-pill {
        font-size: 0.58rem !important;
        padding: 1px 3px !important;
        border-radius: 3px !important;
        margin-top: 1px !important;
        display: block !important;
        text-align: center !important;
    }

    /* Hide crowded full-name chips inside day cells on mobile - tapped day displays everything below */
    .calendar-day .day-leads-dots {
        display: none !important;
    }

    .calendar-sidebar-panel {
        width: 100% !important;
        max-height: none !important;
    }

    /* MODAL MOBILE OVERRIDE FIXES: PREVENT OVERFLOWING SCREEN */
    .modal-overlay {
        padding: 8px 6px !important;
        align-items: center !important;
    }

    .modal,
    .modal.modal-sm,
    .modal.modal-md,
    .modal.modal-lg {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        max-height: 92vh !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .modal-header {
        padding: 10px 14px !important;
    }

    .modal-header h2 {
        font-size: 0.95rem !important;
    }

    .modal-body,
    .modal-scroll-body,
    .modal-scroll-area {
        padding: 12px 14px !important;
        max-height: calc(88vh - 120px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .form-grid,
    .form-grid-2,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .form-actions,
    .modal-footer.form-actions {
        padding: 10px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .schedule-type-selector {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .import-zone {
        padding: 20px 10px !important;
    }

    .import-info ul {
        margin-left: 14px !important;
        padding-left: 0 !important;
    }

    .export-format-selector,
    .format-options {
        width: 100% !important;
    }

    .radio-card {
        padding: 10px 12px !important;
    }

    .modal-meta-strip {
        padding: 6px 14px !important;
        gap: 8px !important;
    }

    .settings-status-stats {
        grid-template-columns: 1fr !important;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 8px;
    }

    .lead-card-actions {
        flex-wrap: wrap;
    }

    .card-action-btn {
        flex-basis: calc(50% - 4px);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Print styles */
@media print {
    .header, .mobile-nav, .toolbar-actions, .action-group,
    .lead-card-actions, .toast-container, .modal-overlay {
        display: none !important;
    }

    .leads-table-wrapper {
        display: block !important;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .leads-cards {
        display: none !important;
    }
}
