/* AMALIT 2026 - Modern Professional Conference UI Styles */
:root {
    --amalit-primary: #1e3a8a;
    --amalit-primary-dark: #0f172a;
    --amalit-primary-light: #3b82f6;
    --amalit-accent: #059669;
    --amalit-warning: #f59e0b;
    --amalit-danger: #dc2626;
    --amalit-bg: #f8fafc;
    --amalit-card-bg: #ffffff;
    --amalit-text-main: #1e293b;
    --amalit-text-muted: #64748b;
    --amalit-border: #e2e8f0;
}

body {
    background-color: var(--amalit-bg);
    color: var(--amalit-text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar - Two-Line Architecture */
.navbar-amalit {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 1030;
}
.navbar-amalit-top {
    background: rgba(15, 23, 42, 0.35);
}
.navbar-amalit .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.navbar-amalit .nav-link {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.navbar-amalit .nav-link:hover,
.navbar-amalit .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
.navbar-amalit-menu {
    background: rgba(15, 23, 42, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible !important;
}
.navbar-amalit-menu .container-fluid,
.navbar-amalit-menu .navbar-collapse {
    overflow: visible !important;
}
.navbar-amalit-menu .nav-link {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.18s ease;
}
.navbar-amalit-menu .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
.navbar-amalit-menu .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 #38bdf8;
}
.navbar-amalit-menu .navbar-nav {
    overflow: visible !important;
}
@media (min-width: 1200px) {
    .navbar-amalit-menu .navbar-nav {
        flex-wrap: wrap;
        overflow: visible !important;
    }
}
.navbar-amalit-menu .nav-item.dropdown {
    position: relative;
}
.navbar-amalit-menu .dropdown-menu {
    z-index: 1060 !important;
    min-width: 250px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
    margin-top: 4px !important;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    padding: 1.5rem 0 3rem 0;
}

/* Card Styling */
.card-amalit {
    background: var(--amalit-card-bg);
    border: 1px solid var(--amalit-border);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-amalit:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.card-header-clean {
    background: transparent;
    border-bottom: 1px solid var(--amalit-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* KPI Cards */
.kpi-card {
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--amalit-border);
    background: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.35rem;
    color: var(--amalit-text-main);
}
.kpi-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--amalit-text-muted);
}

/* Purple custom badge */
.bg-purple-subtle { background-color: #f3e8ff !important; }
.text-purple { color: #7e22ce !important; }

/* Follow-up Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #cbd5e1;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-badge {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
}
.timeline-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

/* Custom Table Styles */
.table-amalit th {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-top: none;
    vertical-align: middle;
}
.table-amalit td {
    vertical-align: middle;
    font-size: 0.9rem;
}
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Action button icons */
.btn-action-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Extra small button for inline table toggles */
.btn-xs {
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.35;
    border-radius: 4px;
}

/* Sticky search/filter bar */
.filter-bar {
    background: #ffffff;
    border: 1px solid var(--amalit-border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

/* Quick tag pill */
.tag-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ==========================================================================
   AMALIT 2026 - COMPREHENSIVE RESPONSIVE DESIGN (MOBILE & LAPTOP)
   ========================================================================== */

/* Touch-friendly base button styles */
.btn-touch {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
}

/* Smooth Horizontal Scrollable Nav Tabs & Pills */
.nav-tabs-scrollable,
.nav-pills-scrollable {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #cbd5e1 transparent;
    padding-bottom: 3px;
}
.nav-tabs-scrollable::-webkit-scrollbar,
.nav-pills-scrollable::-webkit-scrollbar {
    height: 4px;
}
.nav-tabs-scrollable::-webkit-scrollbar-thumb,
.nav-pills-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.nav-tabs-scrollable .nav-item,
.nav-pills-scrollable .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Responsive Nav Tabs that wrap gracefully and never overflow the window */
.nav-tabs-responsive {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 6px;
    border-bottom: 2px solid var(--amalit-border, #e2e8f0);
    padding-bottom: 0;
    margin-bottom: 1.5rem;
    width: 100%;
}
.nav-tabs-responsive .nav-item {
    flex: 0 0 auto;
}
.nav-tabs-responsive .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    padding: 0.5rem 0.85rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent;
}
.nav-tabs-responsive .nav-link:hover {
    color: #1e3a8a;
    background-color: #f1f5f9;
    border-color: #e2e8f0 #e2e8f0 transparent;
}
.nav-tabs-responsive .nav-link.active {
    color: #1e3a8a !important;
    background-color: #ffffff !important;
    border-color: #cbd5e1 #cbd5e1 transparent !important;
    border-bottom: 2px solid #1e3a8a !important;
    font-weight: 700;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.02);
}
@media (max-width: 767.98px) {
    .nav-tabs-responsive {
        flex-wrap: wrap !important;
        gap: 4px;
    }
    .nav-tabs-responsive .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.65rem;
    }
}

/* Sticky Column for Wide Schedule & Queue Tables */
.schedule-sticky-left {
    position: sticky !important;
    left: 0 !important;
    z-index: 10 !important;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.18);
}
.schedule-matrix-table th,
.schedule-matrix-table td {
    min-width: 145px;
}
.schedule-matrix-table th:first-child,
.schedule-matrix-table td:first-child {
    min-width: 140px;
    max-width: 140px;
}

/* Volunteer Mobile Call Card */
.volunteer-card {
    background: #ffffff;
    border: 1px solid var(--amalit-border);
    border-radius: 12px;
    padding: 1.15rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.volunteer-card:active {
    transform: scale(0.99);
}

/* Quick Action Badges */
.badge-touch {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Table Horizontal Scroll Hint */
.table-scroll-hint {
    display: none;
}
@media (max-width: 991.98px) {
    .table-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 12px;
        background: #f1f5f9;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
        border-bottom: 1px solid var(--amalit-border);
    }
}

/* Floating Bottom Navigation for Mobile Smartphones */
.mobile-bottom-nav {
    display: none;
}

/* --------------------------------------------------------------------------
   Mobile Phone Breakpoint (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 68px; /* Offset space for mobile bottom bar */
    }

    /* Container fluid gutters */
    .container-fluid {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .main-wrapper {
        padding: 0.85rem 0 2rem 0;
    }

    /* Prevent iOS Safari 16px auto-zoom */
    input.form-control,
    select.form-select,
    textarea.form-control {
        font-size: 16px !important;
        min-height: 42px;
    }

    /* KPI Cards compact on phone */
    .kpi-card {
        padding: 1rem;
    }
    .kpi-value {
        font-size: 1.45rem;
    }
    .kpi-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    /* Modals fit neatly on phone screens */
    .modal-dialog {
        margin: 0.65rem !important;
    }
    .modal-content {
        border-radius: 14px !important;
    }
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem !important;
    }

    /* Filter bar on phone */
    .filter-bar {
        padding: 0.85rem;
    }

    /* Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #0f172a;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.3);
        z-index: 1040;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
    }
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        flex: 1;
        height: 100%;
        padding: 4px 2px;
        transition: all 0.15s ease-in-out;
    }
    .mobile-bottom-nav a i {
        font-size: 18px;
        margin-bottom: 2px;
    }
    .mobile-bottom-nav a.active {
        color: #38bdf8;
    }
    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a:active {
        color: #ffffff;
    }

    /* Navbar brand clean on phone */
    .navbar-amalit .navbar-brand {
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   Extra Small Mobile Phone Breakpoint (< 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    /* Headings */
    h3 {
        font-size: 1.35rem;
    }
    h4 {
        font-size: 1.2rem;
    }
    h5 {
        font-size: 1.05rem;
    }

    /* Stack filter buttons vertically if needed */
    .btn-mobile-full {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Laptop & Desktop Enhancements (>= 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .container-fluid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
}

/* Badges print layout */
@media print {
    body { background: #ffffff !important; padding-bottom: 0 !important; }
    .navbar-amalit, .mobile-bottom-nav, .no-print, .btn, footer { display: none !important; }
    .print-only { display: block !important; }
}
