 :root {
     --brand-green: #16a34a;
     --brand-blue: #2563eb;
     --brand-grad: linear-gradient(135deg, var(--brand-green), var(--brand-blue));
     --card-bg: #ffffff;
     --border: #eef2f7;
     --text: #0f172a;
     --muted: #64748b;
 }

 body {
     background: #f7f9fc;
 }

 .login-wrapper {
     min-height: 100vh;
     display: grid;
     place-items: center;
     padding: 24px;
     background:
         radial-gradient(60rem 60rem at -10% -10%, rgba(22, 163, 74, .08), transparent 60%),
         radial-gradient(50rem 50rem at 120% 120%, rgba(37, 99, 235, .08), transparent 60%);
 }

 .login-card {
     width: min(440px, 100%);
     background: var(--card-bg);
     border: 1px solid var(--border);
     border-radius: 18px;
     padding: 28px 26px;
     box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
 }

 .brand-title {
     font-weight: 800;
     letter-spacing: .2px;
     background: var(--brand-grad);
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
 }

 .input-icon.left {
     position: absolute;
     left: 12px;
     top: 50%;
     transform: translateY(-50%);
     color: var(--muted);
     pointer-events: none;
 }

 .form-control {
     height: 44px;
     border-radius: 10px;
 }

 .form-control:focus {
     border-color: transparent;
     box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
 }

 .toggle-pass {
     position: absolute;
     right: 10px;
     top: 50%;
     transform: translateY(-50%);
     border: 0;
     background: transparent;
     color: var(--muted);
     padding: 0 6px;
     line-height: 1;
     cursor: pointer;
 }

 /* ==== BUTTONS ==== */
 .login-card .btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     font-weight: 600;
     letter-spacing: .2px;
     width: 100%;
     height: 46px;
     border-radius: 12px;
     transition: all .18s ease;
 }

 /* Filled brand button */
 .login-card .btn-brand {
     background-image: var(--brand-grad);
     color: #fff;
     border: none;
     box-shadow: 0 8px 18px rgba(37, 99, 235, .25), 0 4px 10px rgba(22, 163, 74, .18);
 }

 .login-card .btn-brand:hover {
     filter: brightness(1.07);
     transform: translateY(-2px);
     box-shadow: 0 12px 22px rgba(37, 99, 235, .28), 0 6px 12px rgba(22, 163, 74, .22);
 }

 .login-card .btn-brand:active {
     transform: translateY(0);
     box-shadow: 0 5px 12px rgba(37, 99, 235, .18);
 }

 .login-card .btn-brand:focus-visible {
     outline: none;
     box-shadow: 0 0 0 4px rgba(37, 99, 235, .2),
         0 10px 20px rgba(22, 163, 74, .18);
 }

 /* Outline secondary button */
 .login-card .btn-outline-brand {
     background:
         linear-gradient(#fff, #fff) padding-box,
         linear-gradient(135deg, rgba(22, 163, 74, .4), rgba(37, 99, 235, .4)) border-box;
     border: 1.5px solid transparent;
     color: var(--text);
 }

 .login-card .btn-outline-brand:hover {
     background:
         linear-gradient(#fff, #fff) padding-box,
         linear-gradient(135deg, rgba(22, 163, 74, .6), rgba(37, 99, 235, .6)) border-box;
     transform: translateY(-1px);
     box-shadow: 0 6px 16px rgba(2, 6, 23, .08);
 }

 .login-card .btn-outline-brand:active {
     transform: translateY(0);
     box-shadow: 0 3px 10px rgba(2, 6, 23, .06);
 }

 .login-card .btn-outline-brand:focus-visible {
     outline: none;
     box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
 }

 /* Disabled state */
 .login-card .btn:disabled {
     opacity: .6;
     cursor: not-allowed;
     box-shadow: none !important;
 }

 /* small text tweaks */
 label {
     font-weight: 600;
     color: #0f172a;
 }

 .text-muted {
     color: #6b7280 !important;
 }

 .toggle-pass {
     position: absolute;
     right: 12px;
     top: 50%;
     transform: translateY(-50%);
     border: 0;
     background: transparent;
     color: var(--muted);
     cursor: pointer;
     z-index: 5;
     /* 🔥 IMPORTANT */
 }

 .password-wrapper {
     position: relative;
     /* 🔥 MOST IMPORTANT */
 }

 .password-wrapper .form-control {
     padding-right: 45px;
     /* space for eye icon */
 }

 .toggle-pass {
     position: absolute;
     right: 14px;
     top: 50%;
     transform: translateY(-50%);
     border: none;
     background: transparent;
     color: #6b7280;
     cursor: pointer;
     z-index: 10;
 }

 .toggle-pass:hover {
     color: #2563eb;
 }



 /* =============home page look ===================================== */


 .m-b-lg h3 {
     font-weight: 600;
     margin-bottom: 6px;
 }

 .m-b-lg small {
     font-size: 13px;
     color: #7a7a7a;
 }

 .dash-card {
     background: #ffffff;
     border-radius: 16px;
     padding: 22px 18px;
     margin-bottom: 22px;
     text-align: center;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
     transition: all .25s ease;
     position: relative;
 }

 /* Icon */
 .dash-card i {
     font-size: 26px;
     margin-bottom: 8px;
     color: #1ab394;
 }

 /* Title */
 .dash-card h4 {
     font-size: 14px;
     font-weight: 600;
     color: #6b7280;
     margin: 6px 0 2px;
 }

 /* COUNT (Main Focus) */
 .dash-card h2 {
     font-size: 36px;
     font-weight: 700;
     margin: 4px 0 12px;
     color: #2f4050;
 }

 /* Action Links */
 .dash-links {
     display: flex;
     justify-content: space-between;
     font-size: 13px;
 }

 .dash-links a {
     color: #1ab394;
     font-weight: 600;
     text-decoration: none;
 }

 .dash-links a:hover {
     text-decoration: underline;
 }

 /* Hover Effect */
 .dash-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
 }

 /* ===============================
   COLOR VARIANTS
================================ */
 .dash-card.blue i {
     color: #3498db;
 }

 .dash-card.orange i {
     color: #f39c12;
 }

 .dash-card.purple i {
     color: #9b59b6;
 }

 /* ===============================
   SESSION SUMMARY BAR
================================ */
 .session-bar {
     background: #ffffff;
     border-radius: 14px;
     padding: 16px 20px;
     font-size: 14px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
 }

 .session-bar strong {
     color: #2f4050;
 }

 .session-bar span {
     ensure-color: #fff;
     background: #1ab394;
     padding: 4px 12px;
     border-radius: 20px;
     margin-left: 10px;
     font-weight: 600;
 }

 .session-bar a {
     color: #1ab394;
     font-weight: 600;
     text-decoration: none;
 }

 .session-bar a:hover {
     text-decoration: underline;
 }

 /* ===============================
   RESPONSIVE TWEAKS
================================ */
 @media (max-width: 992px) {
     .dash-links {
         flex-direction: column;
         gap: 6px;
     }
 }

 @media (max-width: 768px) {
     .dash-card {
         padding: 20px 16px;
     }

     .dash-card h2 {
         font-size: 32px;
     }
 }

 /* ===============================
   DASH CARD ACTION BUTTONS
================================ */
 .dash-actions {
     display: flex;
     justify-content: center;
     gap: 10px;
     margin-top: 6px;
 }

 .btn-action {
     padding: 4px 12px;
     font-size: 12px;
     font-weight: 600;
     border-radius: 20px;
     text-decoration: none;
     transition: all .2s ease;
     border: 1px solid transparent;
 }

 /* Add button */
 .btn-action.add {
     background: rgba(26, 179, 148, 0.12);
     color: #1ab394;
     border-color: rgba(26, 179, 148, 0.3);
 }

 .btn-action.add:hover {
     background: #1ab394;
     color: #fff;
 }

 /* View button */
 .btn-action.view {
     background: rgba(52, 152, 219, 0.12);
     color: #3498db;
     border-color: rgba(52, 152, 219, 0.3);
 }

 .btn-action.view:hover {
     background: #3498db;
     color: #fff;
 }

 /* ===============================
   SESSION SUMMARY BAR (PREMIUM)
================================ */
 .session-bar {
     background: #ffffff;
     border-radius: 14px;
     padding: 16px 20px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 /* Left side */
 .session-left {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 14px;
     color: #2f4050;
 }

 .session-left i {
     font-size: 18px;
     color: #1ab394;
 }

 .session-count {
     background: #1ab394;
     color: #fff;
     padding: 4px 12px;
     border-radius: 20px;
     font-weight: 700;
     font-size: 13px;
 }

 /* Right side button */
 .btn-session {
     background: rgba(26, 179, 148, 0.12);
     color: #1ab394;
     padding: 6px 14px;
     border-radius: 22px;
     font-size: 13px;
     font-weight: 600;
     text-decoration: none;
     transition: all .2s ease;
     border: 1px solid rgba(26, 179, 148, 0.35);
 }

 .btn-session i {
     margin-right: 6px;
 }

 .btn-session:hover {
     background: #1ab394;
     color: #ffffff;
 }

 /* =============home page look ===================================== */


 /* list page css  */
 .profile-image {
     width: 50px;
     height: 50px;
 }

 .order-actions {
     display: flex;
     /* Ensure flex display */
     align-items: center;
     /* Center items vertically */
     gap: 10px;
     /* Space between buttons */
 }

 .order-actions .btn {
     margin: 0;
     /* Reset any default margins */
 }

 .btn {
     display: inline-flex;
     /* Ensure buttons remain inline */
 }

 .page-title {
     font-weight: 600;
     margin-bottom: 4px;
 }

 .page-title i {
     color: #1ab394;
     margin-right: 6px;
 }

 .custom-table th {
     background: #f5f7fa;
     font-weight: 600;
     color: #374151;
 }

 .custom-table td {
     vertical-align: middle;
 }

 .custom-table tbody tr:hover {
     background: #f9fafb;
 }

 .badge-section {
     background: rgba(26, 179, 148, 0.12);
     color: #1ab394;
     font-size: 13px;
     padding: 6px 12px;
     border-radius: 20px;
 }

 .action-buttons {
     display: flex;
     gap: 8px;
 }

 .action-buttons .btn {
     border-radius: 6px;
     padding: 4px 8px;
 }


 .hpanel {
     border-radius: 12px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
 }

 /* Section List Table */
 .section-table {
     background: #fff;
     border-radius: 8px;
     overflow: hidden;
 }

 .section-table thead th {
     background: #f8f9fa;
     font-weight: 600;
     border-bottom: 2px solid #dee2e6;
 }

 .section-table tbody tr {
     transition: all 0.2s ease;
 }

 .section-table tbody tr:hover {
     background-color: #f5f9ff;
 }

 /* Section Badge */
 .section-badge {
     display: inline-block;
     padding: 6px 14px;
     font-size: 13px;
     font-weight: 600;
     border-radius: 20px;
     background: #e7f5ff;
     color: #0d6efd;
     letter-spacing: 1px;
 }

 /* Action Buttons */
 .action-btn {
     margin: 0 4px;
     border-radius: 6px;
     padding: 4px 8px;
 }

 .btn-outline-primary:hover {
     background: #0d6efd;
     color: #fff;
 }

 .btn-outline-danger:hover {
     background: #dc3545;
     color: #fff;
 }

 /* Panel shadow */
 .hpanel {
     border-radius: 10px;
     border: none;
 }

 .hpanel .panel-body {

     border-radius: 26px;
     padding: 13px;
     position: relative;
 }

 /* School Table */
 .school-table {
     background: #fff;
     border-radius: 10px;
     overflow: hidden;
 }

 .school-table thead th {
     background: #f8f9fa;
     font-weight: 600;
     border-bottom: 2px solid #dee2e6;
     white-space: nowrap;
 }

 .school-table tbody tr {
     transition: all 0.2s ease;
 }

 .school-table tbody tr:hover {
     background-color: #f5f9ff;
 }

 /* School Logo */
 .school-logo {
     width: 45px;
     height: 45px;
     object-fit: cover;
     border-radius: 50%;
     border: 2px solid #e9ecef;
     background: #fff;
 }

 /* School Name Badge */
 .school-name-badge {
     display: inline-block;
     padding: 6px 14px;
     font-size: 13px;
     font-weight: 600;
     border-radius: 20px;
     background: #e7f5ff;
     color: #0d6efd;
 }

 /* Email Link */
 .table-link {
     color: #0d6efd;
     text-decoration: none;
 }

 .table-link:hover {
     text-decoration: underline;
 }

 /* Action Buttons */
 .action-btn {
     margin: 0 3px;
     border-radius: 6px;
     padding: 4px 8px;
 }

 .btn-outline-primary:hover {
     background: #0d6efd;
     color: #fff;
 }

 .btn-outline-danger:hover {
     background: #dc3545;
     color: #fff;
 }

 /* ============================= */
 /* ================================
   GLOBAL LIST TABLE DESIGN
   Applies to all admin list pages
================================ */

/* Table Base */
table.table {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Table Header */
table.table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

/* Table Body */
table.table tbody td {
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
}

/* Row Hover */
table.table tbody tr {
    transition: background 0.2s ease;
}

table.table tbody tr:hover {
    background: #f1f5f9;
}

/* ID Column */
table.table td:first-child {
    font-weight: 600;
    color: #2563eb;
}

/* Class / Section / Name Highlight */
table.table tbody td:nth-child(2) {
    font-weight: 600;
}

/* Action Buttons Wrapper */
.order-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* Action Buttons */
.order-actions .btn {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
}

/* Edit Button */
.order-actions .btn-success {
    background: transparent;
    border: 1px solid #22c55e;
    color: #22c55e;
}

.order-actions .btn-success:hover {
    background: #22c55e;
    color: #fff;
}

/* Delete Button */
.order-actions .btn-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.order-actions .btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

/* Icons */
.order-actions i {
    font-size: 14px;
}

/* DataTable Pagination Fix */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 10px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    table.table {
        font-size: 13px;
    }

    .order-actions {
        flex-direction: column;
    }
}


