﻿.app-brand {
    display: none !important;
}
.loginDiv {
    padding: 10px;
    /*display: none !important;*/
    display: flex;
    justify-content: center;
}
.loginImg {
    width:25%;
    height: auto;
    object-fit: contain;
}

.form-floating > label { 
    padding: .5rem .75rem; 
}

.login-header {
    background: linear-gradient(to right, #43a047, #66bb6a);
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 3px solid #2e7d32;
}
.login-card {
    background: white;
    border: 2px solid #43a047;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(67, 160, 71, 0.15);
    height: fit-content;
}
.login-header {
    background: linear-gradient(to right, #43a047, #66bb6a) !important;
    color: white !important;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 3px solid #2e7d32;
}
.form-group label {
    display: block;
    color: #000;
    font-size: 13px;
    margin-bottom: 0px;
    font-weight: 600;
}
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #66bb6a;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f1f8e9;
}
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #43a047, #66bb6a);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
    .login-btn:hover {
        background: linear-gradient(to right, #388e3c, #43a047);
        box-shadow: 0 4px 8px rgba(67, 160, 71, 0.3);
    }
.forgot-password {
    text-align: center;
    margin-top: 0px;
    color: #d32f2f !important;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}
.section-header {
    background: linear-gradient(to right, #43a047, #66bb6a) !important;
    color: white !important;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 3px solid #2e7d32;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stat-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        opacity: 0.5;
    }
    .stat-card.blue::before {
        background: #43a047;
    }
.stat-icon {
    font-size: 28px;
    margin-bottom: 0px;
    line-height: 30px;
}
.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    /*margin-bottom: 6px;*/
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-number {
    font-size: 30px;
    font-weight: bold;
    color: #2e7d32;
    line-height: 30px;
}
.stat-card.cyan::before {
    background: #66bb6a;
}
.stat-card.purple::before {
    background: #81c784;
}
.stat-card.green::before {
    background: #2e7d32;
}
.stat-card.yellow::before {
    background: #fbc02d;
}
.stat-card.gray::before {
    background: #757575;
}
.stat-card.red::before {
    background: #d32f2f;
}
.stat-card.orange::before {
    background: #7cb342;
}

.accordion-item {
    border: 1px solid #c8e6c9 !important;
    margin-bottom: 5px;
}
/* Mobile image size */
@media (max-width: 768px) {
    .tbapp-info {
        padding: 0px;
        display: none !important;
    }
    .loginDiv {
        padding: 10px;
        display: flex !important;
        justify-content: center;
    }
    .loginImg{
        width: 30%;
        height: auto;
        object-fit: contain;
    }
    .row {
        --bs-gutter-x: 0px;
    }
    .card { margin-bottom: 0rem;}
    .pt-4 {
        padding-top: 0.5rem !important;
    }
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }


    .topbar.topbar--one {
        position: -webkit-sticky !important; /* iOS Safari */
        position: sticky !important;
        top: 0 !important;
        left: 0;
        width: 100%;
        z-index: 1050; /* Bootstrap navbar se upar */
    }

    /* Parent overflow fix (VERY IMPORTANT) */
    .page-wrapper,
    body,
    html {
        overflow: visible !important;
    }


    .app-brand {
        display: block;
    }
    /* Outer container: image + text side by side */
        .cm-mobile {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
        /* Text block: two lines (name + designation) */
        .cm-mobile .topbar__infu__text {
            display: flex;
            flex-direction: column; /* 🔥 FIX */
            line-height: 1.2;
        }
        /* Name */
        .cm-mobile .cm-name {
            font-size: 16px;
            font-weight: 600;
            color: #014343;
        }
        /* Designation */
        .cm-mobile .topbar__contact {
            font-size: 14px;
            font-weight: 400;
            color: #21212d;
        }

        .cm-mobile .topbar__infu__icon {
            width: 45px;
            height: 45px;
            min-width: 45px;
            margin-right: 8px;
        }

        .cm-mobile .cmlogo {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

    .fixed-dashboard-card {
        min-height: 380px;
    }

    .filter-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-divider {
        display: none;
    }

    .enhanced-card {
        min-height: 100px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
 
}



/* Ensure uniform grid */
.stats-grid .col {
    display: flex;
}
/* Equal height stat cards */
.stats-grid .card.radius-10 {
    flex: 1;
    /*min-height: 80px;*/
}
/* //Align content nicely
        .stats-grid .card-body {
            display: flex;
            align-items: center;
        } */

.fixed-dashboard-card {
    display: flex;
    flex-direction: column;
    /*height: 88vh;*/ /* reduced height */
}

    .fixed-dashboard-card .card-body {
        flex: 1;
        overflow: auto; /* ✅ no scroll */
        padding: 1rem;
    }

.stats-grid .card.radius-10 {
    padding: 0;
}
    /* Compact card body */
    .stats-grid .card.radius-10 .card-body {
        padding: 10px 12px;
        align-items: flex-start; /* ⬅️ stop vertical centering */
    }
    /* Stack text properly */
    .stats-grid .card.radius-10 .d-flex {
        align-items: flex-start;
    }
/* Smaller label */
.stats-grid p {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 4px;
}
/* Smaller numbers */
.stats-grid h4 {
    font-size: 22px;
    margin: 0;
    font-weight: 600;
}
/* Compact icons */
.stats-grid .widgets-icons {
    width: 34px;
    height: 34px;
    font-size: 16px;
    flex-shrink: 0;
}
    /* Push icon to top-right neatly */
    .stats-grid .widgets-icons i {
        font-size: 16px;
        line-height: 34px;
    }
/* Optional: tighten card height further */
.stats-grid .card.radius-10 {
    /*min-height: 100px;*/
}

.stat-card-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

/* Cyan - On Treatment */
.stat-card-cyan {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #00838f;
}

/* Light Blue - Treatment Complete */
.stat-card-light-blue {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    color: #0277bd;
}

/* Green - Cured */
.stat-card-green {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #fff;
}

    .stat-card-green .stat-label,
    .stat-card-green .stat-value {
        /*color: #fff;*/
    }

    .stat-card-green .card-icon {
        background: rgba(255, 255, 255, 0.2);
    }

/* Yellow - DR-TB */
.stat-card-yellow {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    color: #f57f17;
}

/* Light Red - LTFU */
.stat-card-light-red {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

/* Red - Died */
.stat-card-red {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    color: #b71c1c;
}

/* Dark Red - Pending */
.stat-card-dark-red {
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
    color: #fff;
}

    .stat-card-dark-red .stat-label,
    .stat-card-dark-red .stat-value {
        /*color: #fff;*/
    }

    .stat-card-dark-red .card-icon {
        background: rgba(255, 255, 255, 0.2);
    }

.stat-label {
    font-size: 0.8rem;
    /*margin-bottom: 0.5rem;*/
    opacity: 0.95;
    font-weight: 600;
}
/* Compact app branding */
.app-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.app-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
}
.app-name {
    font-size: 22px; /* slightly smaller than h3 default */
    font-weight: 600;
    line-height: 1.2;
}

.app-name-en {
    font-size: 16px;
    font-weight: 500;
}

.app-location {
    font-size: 14px;
    color: #6c757d;
}

.app-title h4 {
    font-size: 18px;
    line-height: 1.2;
}

.app-title small {
    font-size: 12px;
}

/* Login intro */
.login-intro h5 {
    font-size: 16px;
}

.login-intro p {
    font-size: 15px;
}

.login-intro small {
    font-size: 13px;
}

/* Limit FAQ height and enable scrolling */
.faq-scroll {
    max-height: 132px; /* ~3 accordion items */
    overflow-y: auto;
    padding-right: 8px; /* space for scrollbar */
}

/* Optional: smoother scrolling */
.faq-scroll {
    scroll-behavior: smooth;
}

    /* Optional: nicer scrollbar (Chrome/Edge) */
    .faq-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .faq-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.25);
        border-radius: 10px;
    }

    .faq-scroll::-webkit-scrollbar-track {
        background: transparent;
    }
.faq-scroll {
    max-height: 170px;
    overflow-y: auto;
    padding-right: 8px;
}