html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #136BA9;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 42px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===================================
   CUSTOM COLOR OVERRIDES 
   =================================== */

/* Primary Color Override - Blue #136BA9 */
.btn-primary, .bg-primary {
    background-color: #136BA9 !important;
    border-color: #136BA9 !important;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        background-color: #0f5585 !important;
        border-color: #0f5585 !important;
    }

.btn-outline-primary {
    color: #136BA9 !important;
    border-color: #136BA9 !important;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
        background-color: #136BA9 !important;
        border-color: #136BA9 !important;
        color: #fff !important;
    }

.btn-check:checked + .btn-outline-primary {
    background-color: #136BA9 !important;
    border-color: #136BA9 !important;
}

.text-primary {
    color: #136BA9 !important;
}

.border-primary {
    border-color: #136BA9 !important;
}

.alert-primary {
    background-color: #d4e8f5 !important;
    border-color: #136BA9 !important;
    color: #0a3f5f !important;
}

.badge.bg-primary {
    background-color: #136BA9 !important;
}

.nav-link:hover {
    color: #136BA9 !important;
}

/* Danger Color Override - Red #822433 */
.btn-danger, .bg-danger {
    background-color: #822433 !important;
    border-color: #822433 !important;
}

    .btn-danger:hover, .btn-danger:focus, .btn-danger:active {
        background-color: #661c28 !important;
        border-color: #661c28 !important;
    }

.btn-outline-danger {
    color: #822433 !important;
    border-color: #822433 !important;
}

    .btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active {
        background-color: #822433 !important;
        border-color: #822433 !important;
        color: #fff !important;
    }

.btn-check:checked + .btn-outline-danger {
    background-color: #822433 !important;
    border-color: #822433 !important;
}

.text-danger {
    color: #822433 !important;
}

.border-danger {
    border-color: #822433 !important;
}

.alert-danger {
    background-color: #f5d9de !important;
    border-color: #822433 !important;
    color: #4d1620 !important;
}

.badge.bg-danger {
    background-color: #822433 !important;
}

/* Warning Color Override - Yellow #E4A320  */
.btn-warning, .bg-warning {
    background-color: #E4A320 !important;
    border-color: #E4A320 !important;
    color: #000 !important;
}

    .btn-warning:hover, .btn-warning:focus, .btn-warning:active {
        background-color: #a89570 !important;
        border-color: #a89570 !important;
        color: #000 !important;
    }

.btn-outline-warning {
    color: #E4A320 !important;
    border-color: #E4A320 !important;
}

    .btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active {
        background-color: #E4A320 !important;
        border-color: #E4A320 !important;
        color: #000 !important;
    }

.btn-check:checked + .btn-outline-warning {
    background-color: #E4A320 !important;
    border-color: #E4A320 !important;
    color: #000 !important;
}

.text-warning {
    color: #E4A320 !important;
}

.border-warning {
    border-color: #E4A320 !important;
}

.alert-warning {
    background-color: #f5f0e8 !important;
    border-color: #E4A320 !important;
    color: #5f5442 !important;
}

.badge.bg-warning {
    background-color: #E4A320 !important;
    color: #000 !important;
}

/* DataTables pagination button colors */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #136BA9 !important;
    border-color: #136BA9 !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #136BA9 !important;
    border-color: #136BA9 !important;
    color: white !important;
}

/* DataTables (Bootstrap 5) pagination + loader colors (scoped) */
#adminCasesTable_wrapper .page-link,
#casesTable_wrapper .page-link {
    color: #136BA9 !important;
}

#adminCasesTable_wrapper .page-item.active .page-link,
#casesTable_wrapper .page-item.active .page-link {
    background-color: #136BA9 !important;
    border-color: #136BA9 !important;
    color: #ffffff !important;
}

#adminCasesTable_wrapper .page-link:hover,
#casesTable_wrapper .page-link:hover {
    background-color: #136BA9 !important;
    border-color: #136BA9 !important;
    color: #ffffff !important;
}

#adminCasesTable_wrapper .page-link:focus,
#casesTable_wrapper .page-link:focus {
    box-shadow: none !important;
}

/* DataTables processing indicator (loader) color */
#adminCasesTable_wrapper .dataTables_processing,
#casesTable_wrapper .dataTables_processing,
#adminCasesTable_processing,
#casesTable_processing {
    color: #136BA9 !important;
}

    /* DataTables processing animated dots (Bootstrap 5 theme) */
    #adminCasesTable_wrapper div.dataTables_processing > div:last-child > div,
    #casesTable_wrapper div.dataTables_processing > div:last-child > div,
    #adminCasesTable_processing > div:last-child > div,
    #casesTable_processing > div:last-child > div {
        background: #136BA9 !important;
    }

/* Custom styles for Student Family Support System */

/* Card enhancements */

.card {
    border: none;
    border-radius: 12px;
    background-color: #f4f5f7; /* light neutral gray */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    }


/* Content Panel Styling */
.content-panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /*padding: 2rem 0;*/ /* horizontal padding removed so tables stretch edge-to-edge */
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    /*overflow-x: auto;*/ /* prevents inner table from causing page-wide scroll */
}

    /* Re-apply horizontal padding to non-table content inside .content-panel */
    .content-panel > .row,
    .content-panel > h1,
    .content-panel > h2,
    .content-panel > h3,
    .content-panel > p,
    .content-panel > .mb-4,
    .content-panel > .alert {
        /* padding-left: 2rem;
  padding-right: 2rem;*/
        padding: 2rem;
    }

/* Question group styling */
.question-group {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

    /* Make checkbox/radio borders more visible (default state) */
    .question-group .form-check-input:not(.is-invalid):not(:checked) {
        border-color: var(--bs-gray-600);
    }

    .question-group:hover {
        background-color: #e9ecef;
        border-color: #136BA9 !important;
    }

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

/* Radio button styling */
.btn-check:checked + .btn-outline-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff !important;
}

.btn-check:checked + .btn-outline-danger {
    background-color: #822433;
    border-color: #822433;
    color: #fff !important;
}

.btn-check:checked + .btn-outline-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff !important;
}

/* Character counter styling */
#charCount {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

    #charCount.bg-warning {
        animation: pulse 1s infinite;
    }

    #charCount.bg-danger {
        animation: shake 0.5s;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* DataTables enhancements */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem; /* right padding accommodates the custom SVG arrow */
    margin: 0 0.5rem;
    appearance: none; /* suppress native arrow; Bootstrap SVG background-image arrow is used */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 16px 12px;
}

table.dataTable tbody tr {
    transition: background-color 0.2s ease;
}

    table.dataTable tbody tr:hover {
        background-color: rgba(19, 107, 169, 0.1) !important;
    }

/* Rating stars styling */
.rating-input {
    display: inline-block;
}

.rating-star {
    transition: all 0.2s ease;
    margin: 0 2px;
}

    .rating-star:hover {
        transform: scale(1.2);
    }

.rating-display i {
    margin: 0 1px;
}

/* Clickable rating display */
.rating-display.view-rating {
    transition: all 0.2s ease;
    cursor: pointer;
}

    .rating-display.view-rating:hover {
        transform: scale(1.1);
        filter: brightness(1.2);
    }

.view-description {
    transition: all 0.2s ease;
}

    .view-description:hover {
        transform: scale(1.05);
    }

/* Badge styling */
.badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Alert enhancements */
.alert {
    border-left: 4px solid;
    border-radius: 0.375rem;
}

.alert-success {
    border-left-color: #198754;
}

/* Feature icons on home page */
.feature-icon {
    margin-bottom: 1rem;
}

/* Navigation enhancements */
.navbar {
    min-height: 60px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0;
    margin-right: 2rem;
}

/* Navbar logo styling */
.navbar-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===================================
   SIDEBAR LAYOUT
   =================================== */
.app-wrapper {
    min-height: calc(100vh - 102px); /* 60px navbar + 42px footer reserve */
    align-items: stretch;
    position: relative;
}

.sidebar-toggle-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

    .sidebar-toggle-btn .burger-line {
        width: 20px;
        height: 2px;
        background-color: #ffffff;
        display: block;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .sidebar-toggle-btn:hover {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .sidebar-toggle-btn:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }

.sidebar {
    width: 220px;
    min-width: 220px;
    background-color: #136BA9;
    flex-shrink: 0;
    transition: margin-left 0.25s ease;
    /* Stretch to fill the full app-wrapper height, no gap above footer */
}

body.sidebar-collapsed .sidebar {
    margin-left: -220px;
}

.sidebar-backdrop {
    display: none;
}

.sidebar > .nav {
    position: sticky;
    top: 0;
    padding-top: 0.75rem;
}

.sidebar-header {
    background-color: #ffffff;
    border: 3px solid #136BA9;
    border-top: none;
    border-radius: 0 0 6px 6px;
    margin: 0 8px 8px 8px;
}

    .sidebar-header .sidebar-welcome {
        color: #136BA9;
        font-weight: 600;
    }

.sidebar-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.7rem 1.25rem !important;
    border-left: 3px solid transparent;
    border-radius: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: #ffffff !important;
        border-left-color: rgba(255, 255, 255, 0.5);
    }

    .sidebar .nav-link.active {
        font-weight: 600;
        border-left: 3px solid #ffffff;
        background-color: rgba(255, 255, 255, 0.18);
        color: #ffffff !important;
    }

/* Separator between sidebar items */
.sidebar .nav-item + .nav-item {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Sub-menu items (inside collapse panels) — smaller than parent nav links.
   Also targets .collapsing so font stays small during Bootstrap's open/close animation. */
.sidebar .collapse .nav .nav-link,
.sidebar .collapsing .nav .nav-link {
    font-size: 0.82rem;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
}


.sidebar .nav-link .bi-chevron-down {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Sidebar badge — min-width sized to hold up to 6-digit counts */
.sidebar-badge {
    display: inline-block;
    min-width: 3rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    border-radius: 10rem;
    background-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.main-content {
    padding: 1.0rem;
    overflow-x: hidden;
    min-width: 0; /* prevent flex overflow */
}

/* On small screens the sidebar stays on the left — never wraps to top */
@media (max-width: 767px) {
    .app-wrapper {
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 42px;
        width: 220px;
        min-width: 220px;
        z-index: 1035;
        margin-left: -220px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.sidebar-open .sidebar {
        margin-left: 0;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 42px;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1030;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar .sidebar-header {
        display: block;
    }

    .sidebar-badge {
        display: inline-block;
    }

    .sidebar .nav-link {
        font-size: inherit;
        text-align: left;
        padding: 0.7rem 1.25rem !important;
    }

        .sidebar .nav-link i {
            font-size: inherit;
            display: inline-block;
            text-align: left;
        }

    .sidebar .collapse .nav,
    .sidebar .collapsing .nav {
        margin-left: 0 !important;
    }

        .sidebar .collapse .nav .nav-link,
        .sidebar .collapsing .nav .nav-link {
            font-size: 0.82rem !important;
            padding: 0.45rem 1rem !important;
            text-align: left;
        }

            .sidebar .collapse .nav .nav-link i,
            .sidebar .collapsing .nav .nav-link i {
                font-size: 1rem;
                display: inline-block;
                text-align: left;
            }

    .main-content {
        padding: 0.75rem;
    }
}

/* Logo on home page */
.home-logo {
    max-height: 150px;
    width: auto;
    height: auto;
    max-width: 300px;
    object-fit: contain;
}

/* Login wrapper panel with blue shadow at top */
.login-wrapper-panel {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 -4px 6px -1px rgba(19, 107, 169, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 3px solid #136BA9;
}

/* Ensure menu items are vertically centered */
.navbar-nav {
    align-items: center;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

    .nav-link.active {
        color: #ffffff !important;
        font-weight: 600;
    }

    .nav-link:hover {
        color: #e0e0e0 !important;
    }

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar {
        min-height: 50px;
    }

    .home-logo {
        max-height: 100px;
        max-width: 200px;
    }

    .navbar-brand {
        margin-right: 1rem;
    }

    .navbar-nav {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .home-logo {
        max-height: 80px;
        max-width: 150px;
    }
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.6rem 0;
    background-color: #f8f9fa;
    font-size: 0.85rem;
    line-height: 1.2 !important;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }

    .question-group .col-md-4 {
        margin-top: 1rem;
    }
}

/* Admin-specific styles */
.btn-group .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.btn-group .btn {
    margin: 0 2px;
}

#filterForm .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

#filterForm .form-control,
#filterForm .form-select {
    font-size: 0.9rem;
}

.swal2-html-container {
    overflow-y: auto !important;
    max-height: 70vh;
}

/* Ensure proper spacing for action buttons */
#adminCasesTable .btn-group {
    display: flex;
    gap: 2px;
}

    #adminCasesTable .btn-group .btn {
        white-space: nowrap;
    }

/* Advanced Filter Styles */
#advancedFilters {
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-option {
    transition: all 0.3s ease;
}

#filterToggleBtn {
    transition: all 0.3s ease;
}

    #filterToggleBtn:hover {
        transform: scale(1.05);
    }

    #filterToggleBtn .bi-funnel-fill {
        color: #136BA9;
    }

/* Main search box styling */
#mainSearchBox {
    border-right: none;
    font-size: 1rem;
}

    #mainSearchBox:focus {
        box-shadow: none;
        border-color: #ced4da;
    }

.input-group-lg .btn {
    font-size: 1rem;
}

/* Scrollable text areas in popups */
.swal-scrollable-popup .swal2-html-container {
    max-height: 70vh;
    overflow-y: auto;
}

textarea#responseText {
    min-height: 150px;
}

/* Ensure description and response boxes are scrollable */
.alert.alert-info,
.alert.alert-warning {
    word-wrap: break-word;
    word-break: break-word;
}
/* Advanced Filters Section Styling */
#advancedFilters {
    animation: slideDown 0.3s ease-out;
}

    #advancedFilters .card {
        border: 2px solid #136BA9;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(19, 107, 169, 0.1);
        transition: all 0.3s ease;
    }

        #advancedFilters .card:hover {
            box-shadow: 0 6px 12px rgba(19, 107, 169, 0.2);
        }

    #advancedFilters .card-header {
        background: linear-gradient(135deg, #136BA9 0%, #0f5585 100%);
        border-bottom: 2px solid #0f5585;
        border-radius: 8px 8px 0 0 !important;
        color: white;
    }

        #advancedFilters .card-header h6 {
            color: white;
            font-weight: 600;
        }

    #advancedFilters .card-body {
        background-color: #f8f9fa;
        padding: 1.5rem;
    }

    #advancedFilters .form-label {
        color: #0f5585;
        font-weight: 500;
    }

    #advancedFilters .form-select,
    #advancedFilters .form-control {
        border: 1px solid #136BA9;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

        #advancedFilters .form-select:focus,
        #advancedFilters .form-control:focus {
            border-color: #0f5585;
            box-shadow: 0 0 0 0.2rem rgba(19, 107, 169, 0.25);
        }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   OTP INPUT STYLES 
   =================================== */

.otp-input-container {
    margin: 0 auto;
    max-width: 400px;
}

.otp-input {
    width: 50px;
    height: 60px;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #136BA9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .otp-input:focus {
        border-color: #0f5585;
        box-shadow: 0 0 0 0.25rem rgba(19, 107, 169, 0.25);
        outline: none;
        transform: scale(1.05);
    }

    .otp-input:valid {
        border-color: #28a745;
        background-color: #f0fff4;
    }

    .otp-input::placeholder {
        color: #ccc;
        font-size: 24px;
    }

.active > .page-link, .page-link.active {
    background-color: #136BA9 !important;
    border-color: #136BA9 !important;
}


.pagination {
    --bs-pagination-color: #136BA9 !important;
}




.yes-no-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 2px solid #00a884; /* green border */
    border-radius: 50px;
    padding: 4px;
    width: 120px;
    height: 42px;
    font-family: inherit;
}

    .yes-no-toggle input {
        display: none;
    }

    .yes-no-toggle label {
        flex: 1;
        text-align: center;
        cursor: pointer;
        z-index: 2;
        font-weight: 500;
        color: #9e9e9e;
    }

    .yes-no-toggle .slider {
        position: absolute;
        top: 4px;
        bottom: 4px;
        width: 45%;
        background: #ffffff;
        border-radius: 50px;
        transition: transform 0.25s ease;
        z-index: 1;
        box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    }

/* YES selected */
#yesOpt:checked ~ .slider {
    transform: translateX(0%);
}

#yesOpt:checked + label {
    color: #00a884;
    font-weight: 600;
}

/* NO selected */
#noOpt:checked ~ .slider {
    transform: translateX(100%);
}

#noOpt:checked + label {
    color: #00a884;
    font-weight: 600;
}


/* ── Dashboard-specific styles ── */
.dashboard-header {
    background: linear-gradient(135deg, #136BA9 0%, #1FA2B8 100%);
    border-radius: 10px;
    color: #fff;
    padding: 1.5rem 2rem;
    margin-bottom: 1.75rem;
}

    .dashboard-header h1 {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .dashboard-header p {
        opacity: 0.85;
        margin-bottom: 0;
        font-size: 0.9rem;
    }

.section-toggle .btn {
    border-radius: 20px;
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

    .section-toggle .btn.active,
    .section-toggle .btn:focus {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }
/* Filter panel */
.filter-card {
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    overflow: hidden;
}

    .filter-card .card-header {
        background: #f0f4f8;
        border-bottom: 1px solid #e0e7ef;
        font-weight: 600;
        font-size: 0.875rem;
        padding: 0.65rem 1rem;
    }
/* Stat cards */
.stat-card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    }

    .stat-card .card-body {
        padding: 1.25rem 1.5rem;
    }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a2e;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-top: 2px;
}

.stat-sub {
    font-size: 0.78rem;
    color: #888;
    margin-top: 4px;
}
/* Chart cards */
.chart-card {
    border-radius: 12px;
    border: 1px solid #e8edf2;
    overflow: hidden;
}

    .chart-card .card-header {
        background: #fff;
        border-bottom: 1px solid #e8edf2;
        padding: 0.85rem 1.25rem;
        font-weight: 600;
        font-size: 0.875rem;
        color: #333;
    }

        .chart-card .card-header i {
            color: #136BA9;
        }
/* Loading overlay */
#dashboardLoader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e7ef;
    border-top-color: #136BA9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Empty state */
.chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #adb5bd;
    font-size: 0.875rem;
}

    .chart-empty i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
/* Survey placeholder */
.survey-placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}
/* Badge colors for status filter */
.status-btn-all {
    --bs-btn-color: #495057;
    --bs-btn-border-color: #ced4da;
}
/* Responsive canvas heights */
.canvas-trend {
    min-height: 240px;
}

.canvas-status {
    min-height: 240px;
}

.canvas-inquiry {
    min-height: 300px;
}

.canvas-school {
    min-height: 300px;
}


.no-interaction {
    pointer-events: none;
    cursor: default;
}

/* Match standard Bootstrap icon button height */
.mail-gear-btn {
    padding: 0.25rem 0.4rem; /* tighter than default */
    line-height: 1;
}

/* Envelope size aligned to other bi icons */
.envelope-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Gear placed on top-right CORNER, not center */
.gear-badge {
    top: -0.15rem;
    right: -0.15rem;
    width: 0.95rem;
    height: 0.95rem;
    background-color: #ffc107; /* warning */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gear glyph */
.gear-icon {
    font-size: 0.75rem;
    color: #212529;
}

/* Number inside gear */
.gear-number {
    position: absolute;
    font-size: 0.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}




.no-click {
    cursor: default;
    margin-bottom: 1px;
}

.no-click-mail {
    cursor: default;
}

.no-click:active {
    pointer-events: none;
}



@media (min-width: 1000px) {
    .no-click-mail {
        cursor: default;
        margin-top: -30px;
    }
}
