:root {
    --asha-primary: #1B6B93;
    --asha-primary-dark: #15556F;
    --asha-accent: #F5A601;
    --asha-bg: #F7F8FA;
    --asha-card: #FFFFFF;
    --asha-text: #1F2A37;
    --asha-muted: #6B7280;
    --asha-border: #E5E7EB;
    --asha-radius: 14px;
    --asha-shadow: 0 8px 24px rgba(27, 107, 147, 0.08);
}

.btn-success {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
}

.att-toggle input:checked+label.att-p {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
}

.btn-danger {
    background-color: #fce7f3 !important;
    color: #e11d48 !important;
}

.att-toggle input:checked+label.att-a {
    background-color: #fce7f3 !important;
    color: #e11d48 !important;
}

.btn-warning {
    background-color: #FEF3C7 !important;
    color: #D97706 !important;
}

body {
    background: var(--asha-bg);
    color: var(--asha-text);
}

.card {
    border: 0;
    border-radius: var(--asha-radius);
    box-shadow: var(--asha-shadow);
}

.card-header {
    border-bottom: 0;
}

.card .card-body {
    padding: 1.25rem;
    padding-top: 0;
}

.btn,
.btn-round {
    border-radius: 10px;
}

.btn-primary,
.btn-info {
    background: var(--asha-primary) !important;
    border-color: var(--asha-primary) !important;
}

.btn-outline-info {
    color: var(--asha-primary) !important;
    border-color: var(--asha-primary) !important;
}

.btn-warning.sign_in_button {
    background: var(--asha-accent) !important;
    border-color: var(--asha-accent) !important;
    transform: none !important;
}

.sign_in_button:hover {
    background: #e09800 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(245, 166, 1, 0.35) !important;
}

.form-control,
.input-group .form-control {
    border-radius: 10px;
    border-color: var(--asha-border);
    min-height: 42px;
    padding: 8px 12px;
}

.form-control:focus {
    border-color: var(--asha-primary);
    box-shadow: 0 0 0 3px rgba(27, 107, 147, 0.15);
}

label {
    /* font-size: 12px!important; */
    /* font-weight: 600; */
    /* color: var(--asha-text); */
}

.navbar.navbar-absolute .container-fluid {
    background: #fff !important;
    border-bottom: 1px solid var(--asha-border);
    padding: 10px 16px !important;
}

/* ===== Sidebar ===== */
.sidebar .nav li>a {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.sidebar .nav li>a>i,
.sidebar .nav li>a>p {
    color: inherit !important;
}

.sidebar .nav li.active>a,
.sidebar .nav li.active>a:hover,
.sidebar .nav .collapse .nav li.active>a {
    background: #e4f4fd !important;
    color: #1B6B93 !important;
    font-weight: 500;
}

.sidebar .nav li.active>a>i,
.sidebar .nav li.active>a>p,
.sidebar .nav .collapse .nav li.active>a .sidebar-mini-icon,
.sidebar .nav .collapse .nav li.active>a .sidebar-mini-icon i,
.sidebar .nav .collapse .nav li.active>a .sidebar-normal {
    color: #1B6B93 !important;
}

.sidebar .nav .collapse .nav li>a {
    background: transparent !important;
}

.sidebar .nav li.active>a:before,
.sidebar .nav li.active>a:after,
.sidebar .nav li.active:before,
.sidebar .nav li.active:after {
    display: none !important;
}

/* Submodule: beat Paper .sidebar .nav i { 24px } */
.sidebar .nav li .nav>li>a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px 8px 16px !important;
    margin: 2px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    transition: background-color .15s ease, color .15s ease !important;
}

.sidebar .nav li .nav>li>a .sidebar-mini-icon,
.sidebar .nav li .nav>li>a .sidebar-mini-icon i {
    float: none !important;
    font-size: 12px !important;
    line-height: 1 !important;
    width: 20px !important;
    min-width: 20px !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    transition: color .15s ease !important;
}

.sidebar .nav li .nav>li>a .sidebar-mini-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 10px !important;
}

.sidebar .nav li .nav>li>a .sidebar-normal {
    float: none !important;
    display: block !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    transform: none !important;
    margin: 0 !important;
}

/*END SIDEBAR MENU ICON */

table.alltable:not(.dataTable),
table.domaincodetable:not(.dataTable) {
    visibility: hidden;
}

table.alltable thead th,
table.table.thead.text-primary th,
table.alltable thead.text-primary th {
    background: #F3F6F9;
    color: #6B7280 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 0 !important;
}

div.dt-container div.dt-layout-row:first-child {
    min-height: 44px;
}

table.dataTable thead th {
    background: #F3F6F9;
    color: var(--asha-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 0 !important;
}

table.dataTable tbody td {
    padding: 12px 14px;
    vertical-align: middle;
}

table.dataTable tbody tr:hover {
    background: #F0F7FA;
}

div.dt-buttons>.dt-button,
.dt-button.buttons-colvis {
    background: #fff !important;
    color: var(--asha-primary) !important;
    border: 1px solid var(--asha-border) !important;
    border-radius: 8px !important;
}

.modal-content {
    border: 0;
    border-radius: var(--asha-radius);
}

.modal-header,
.modal-footer {
    border-color: var(--asha-border);
}

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

.stat-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(27, 107, 147, 0.12);
}

@media (max-width: 768px) {
    .page-header {
        align-items: stretch;
    }

    .page-header .btn {
        width: 100%;
    }

    .card .card-body {
        padding: 1rem;
    }
}


/* ===== Login ===== */
.login-page .guest-navbar-modern {
    display: none;
}

/* optional if you hide guest nav */

.login-page .asha-login-card,
.asha-login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 32px 28px 28px;
    background: rgb(255 255 255 / 53%);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.login-page .asha-login-card .card-login {
    border: 0 !important;
    padding: 32px 28px 28px;
}

.login-page .asha-login-card .logo img {
    width: 72px !important;
    height: auto;
}

.signup_page .navbar {
    display: none;
}

/* optional: hide duplicate Login link */

.asha-login-wrap {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 24px 16px; */
}



.asha-login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.asha-login-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.asha-login-brand h1 {
    margin: 12px 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
}

.asha-login-brand p {
    margin: 0;
    font-size: 13px;
    color: #1F2937;
}

.asha-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.asha-roles {
    display: flex;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 18px;
}

.asha-roles input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.asha-field {
    position: relative;
    margin-bottom: 12px;
}

.asha-field .nc-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #9CA3AF;
}

.asha-field .form-control {
    height: 46px;
    padding-left: 42px !important;
    padding-right: 40px;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    background: #fff !important;
}

#showHidePassword {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9CA3AF;
    z-index: 2;
}

.asha-login-meta {
    display: flex;
    color: #111827;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 18px;
    white-space: nowrap;
    font-size: 13px;
}


.asha-login-meta a {
    color: #15556F;
    font-weight: 700;
    font-size: 13px;
}

.asha-login-meta a:hover {
    color: #0F3D50;
}

.asha-login-btn {
    width: 100%;
    height: 46px;
    border: 0 !important;
    border-radius: 12px !important;
    background: #F5A601 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: none !important;
    transform: none !important;
}

.asha-login-btn:hover {
    background: #E09800 !important;
    transform: none !important;
}

/* ===== Dashboard ===== */
.asha-dash {
    padding: 18px 8px 18px;
}

.asha-dash-kicker {
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.asha-dash-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.asha-dash-session {
    font-size: 13px;
    color: #6B7280;
    /* margin-bottom: 24px; */
}

.asha-dash-group {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 20px 0 12px;
}

.asha-metric {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 16px rgba(16, 24, 40, .04);
    padding: 18px 16px;
    margin-bottom: 0;
}

.asha-metric:hover {
    box-shadow: 0 8px 24px rgba(16, 24, 40, .10);
}

.asha-metric-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.asha-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #DBEAFE;
    color: #1D4ED8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.asha-metric-label {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.2;
}

.asha-metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-top: 2px;
}

.asha-metric-sub {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 2px;
}

.asha-metric--blue .asha-metric-icon {
    background: #DBEAFE;
    color: #1D4ED8;
}

.asha-metric--green .asha-metric-icon {
    background: #DCFCE7;
    color: #16A34A;
}

.asha-metric--cyan .asha-metric-icon {
    background: #CFFAFE;
    color: #0891B2;
}

.asha-metric--amber .asha-metric-icon {
    background: #FEF3C7;
    color: #D97706;
}

.asha-metric--slate .asha-metric-icon {
    background: #E5E7EB;
    color: #4B5563;
}

.asha-metric--rose .asha-metric-icon {
    background: #FCE7F3;
    color: #E11D48;
}


.asha-roles {
    display: flex;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.asha-roles label {
    flex: 1;
    margin: 0;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, color .15s, box-shadow .15s;
}

/* Unselected: light tint so they look like buttons */
#roleAdmin+label {
    background: #DBEAFE;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

#roleTeacher+label {
    background: #DCFCE7;
    color: #15803D;
    border-color: #BBF7D0;
}

#roleParent+label {
    background: #FEF3C7;
    color: #B45309;
    border-color: #FDE68A;
}

.asha-roles label:hover {
    filter: brightness(0.97);
}

/* Selected: solid color */
#roleAdmin:checked+label {
    background: #1B6B93;
    color: #fff;
    border-color: #1B6B93;
    box-shadow: 0 4px 10px rgba(27, 107, 147, .35);
}

#roleTeacher:checked+label {
    background: #16A34A;
    color: #fff;
    border-color: #16A34A;
    box-shadow: 0 4px 10px rgba(22, 163, 74, .35);
}

#roleParent:checked+label {
    background: #F5A601;
    color: #fff;
    border-color: #F5A601;
    box-shadow: 0 4px 10px rgba(245, 166, 1, .35);
}

.signup_page .full-page>.content.asha-login-wrap,
.signup_page .asha-login-wrap {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px !important;
    margin: 0;
}


.select2-container .select2-selection--multiple {
    min-height: 42px;
    border-radius: 10px !important;
    border-color: var(--asha-border) !important;
    padding: 4px 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 3px 4px 3px 0;
    border-radius: 8px;
    padding: 2px 8px;
    background: #F3F6F9;
    border-color: var(--asha-border);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 6px;
    border-right: 1px solid #aaa !important;
    border: 0;
    background: transparent;
    position: inherit !important;
}

.select2-selection__choice__remove>span {
    margin-right: 6px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--asha-primary) !important;
    box-shadow: 0 0 0 3px rgba(27, 107, 147, 0.15);
}

/* div.dt-container div.dt-layout-row:first-child {
    min-height: 44px;
} */

.card-header .nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
}

.card-header .nav-pills .nav-item {
    margin: 0;
}


.asha-metric-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.asha-metric-link:hover {
    color: inherit;
    text-decoration: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(27, 107, 147, 0.08);
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 107, 147, 0.14);
}

.gallery-card-media {
    position: relative;
    height: 168px;
    background: #F3F6F9;
    flex-shrink: 0;
    cursor: pointer;
}

.gallery-card-media img,
.gallery-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 6px;
    background: #1B6B93;
    color: #fff;
    z-index: 1;
}

.gallery-badge.is-video {
    background: #15556F;
}

.gallery-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    min-height: 0;
}

.gallery-kicker {
    font-size: 11px;
    color: #1B6B93;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.gallery-desc {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.gallery-more {
    font-size: 11px;
    cursor:pointer;
    color: #1B6B93 !important;
    padding: 0;
}

.gallery-student {
    font-size: 14px;
    font-weight: 600;
    color: #1F2A37;
    margin: 8px 0 12px;
}

.gallery-empty {
    text-align: center;
    color: #6B7280;
    padding: 32px;
    background: #F7F8FA;
    border-radius: 14px;
}