@font-face {
    font-family: 'Kruti Dev';
    src: url('../fonts/Kruti Dev 010 Regular.ttf') format('truetype')
}

.hindi_text {
    font-family: Kruti Dev !important;
    font-size: 18px;
    line-height: normal;
    font-weight: normal;
}


/* --- Pagination --- */
.pagination-link {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    margin: 0 0.15rem;
    border: 1px solid #d9dee3;
    border-radius: 5px;
    color: #566a7f;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
}

.pagination-link:hover {
    background-color: #696cff;
    border-color: #696cff;
    color: #fff;
}

.pagination-link-arrow {
    font-size: 1.2rem;
}

.pagination-link-current {
    background-color: #696cff;
    color: #fff;
    padding: 0.3rem 0.6rem;
    margin: 0 0.15rem;
    border: 1px solid #696cff;
    border-radius: 5px;
    font-weight: 600;
}

.pagination-link.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.line_through {
    text-decoration: line-through;
}

.input_with_img {
    display: flex;
}

.input_with_img img {
    height: 35px;
}

/* --- Checkbox --- */
.form-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.form-check input[type="checkbox"]:checked {
    background-color: #696cff;
    border-color: #696cff;
}

.form-check input[type="checkbox"]::before {
    font-size: 16px;
    color: white;
    display: block;
    text-align: center;
    line-height: 18px;
    visibility: hidden;
}

.form-check input[type="checkbox"]:checked::before {
    visibility: visible;
}

/* =========================================
   ENHANCED CARDS
   ========================================= */
.card {
    background-clip: padding-box;
    background-color: #fff;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(67, 89, 113, 0.1) !important;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(67, 89, 113, 0.14) !important;
}

/* =========================================
   DASHBOARD STAT CARDS - icon bg + colored accent
   ========================================= */
.container-p-y > .row > [class*="col-"]:nth-child(1) > .card.h-100 {
    border-left: 4px solid #696cff !important;
}
.container-p-y > .row > [class*="col-"]:nth-child(2) > .card.h-100 {
    border-left: 4px solid #03c3ec !important;
}
.container-p-y > .row > [class*="col-"]:nth-child(3) > .card.h-100 {
    border-left: 4px solid #71dd37 !important;
}
.container-p-y > .row > [class*="col-"]:nth-child(4) > .card.h-100 {
    border-left: 4px solid #ffab00 !important;
}

.card.h-100 .card-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #384551;
    letter-spacing: 0.2px;
}

.card.h-100 .card-body ul {
    list-style: none;
}

.card.h-100 .card-body ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f2f5;
}

.card.h-100 .card-body ul li:last-child {
    border-bottom: none;
}

.card.h-100 .card-body ul li a {
    font-weight: 500;
}

.card.h-100 .user-progress small {
    font-size: 0.9rem;
    font-weight: 700;
    color: #384551;
    background: #f0f1ff;
    padding: 0.15rem 0.55rem;
    border-radius: 15px;
    display: inline-block;
}

.container-p-y > .row > [class*="col-"]:nth-child(2) .user-progress small {
    background: #e3f7fd;
}
.container-p-y > .row > [class*="col-"]:nth-child(3) .user-progress small {
    background: #edfbe3;
}
.container-p-y > .row > [class*="col-"]:nth-child(4) .user-progress small {
    background: #fff5e0;
}

/* =========================================
   NAVBAR - cleaner
   ========================================= */
.navbar-detached {
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(67, 89, 113, 0.1) !important;
}

#layout-navbar .dropdown-menu {
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 20px rgba(67, 89, 113, 0.12);
    border-radius: 8px;
    padding: 0.4rem;
}

#layout-navbar .dropdown-item {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.15s;
}

#layout-navbar .dropdown-item:hover {
    background-color: #f0f1ff;
    color: #696cff;
}

/* Welcome badge in navbar */
.nav-item.lh-1.me-2 {
    font-weight: 500;
    color: #566a7f;
    background: #f0f1ff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* =========================================
   SIDEBAR - better active/hover 
   ========================================= */
#layout-menu .menu-inner > .menu-item > .menu-link {
    margin: 2px 0.6rem;
    border-radius: 7px !important;
    transition: background-color 0.15s ease;
}

#layout-menu .menu-inner > .menu-item > .menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

#layout-menu .menu-inner > .menu-item.active > .menu-link {
    background: #696cff !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(105, 108, 255, 0.3);
}

#layout-menu .menu-inner > .menu-item.active > .menu-link .menu-icon,
#layout-menu .menu-inner > .menu-item.active > .menu-link div {
    color: #fff !important;
}

#layout-menu .menu-sub .menu-item .menu-link {
    border-radius: 5px !important;
    margin: 1px 0.6rem;
    transition: background-color 0.15s, padding-left 0.15s;
}

#layout-menu .menu-sub .menu-item.active > .menu-link {
    background: rgba(105, 108, 255, 0.15) !important;
    color: #696cff !important;
    font-weight: 600;
}

#layout-menu .menu-sub .menu-item .menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* =========================================
   TABLES - cleaner headers, striped rows
   ========================================= */
.table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 10px 12px;
    border: 1px solid #eceef1;
    text-align: left;
    vertical-align: middle;
}

.table thead th {
    background-color: #f4f5f7;
    color: #384551;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-bottom: 2px solid #e0e3e8;
}

.table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.table tbody tr:hover {
    background-color: #f0f1ff;
}

.table td.download,
.table td.action {
    text-align: center;
}

/* =========================================
   BADGES - better
   ========================================= */
.badge {
    margin-right: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.75rem;
}

.empty-data {
    text-align: center;
    font-style: italic;
    color: #a1acb8;
    padding: 1.5rem;
}

/* --- Toasts --- */
.bs-toast {
    max-width: 400px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toast-header {
    background-color: #696cff;
    color: #fff;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 10px;
}

.toast-body {
    padding: 10px;
}

.toast-body:nth-child(odd) {
    background-color: #f8f9fa;
}

.bx-bell {
    font-size: 20px;
}

/* =========================================
   FORM CONTROLS - polished
   ========================================= */
.form-control {
    height: 40px;
    border-radius: 6px;
    border: 1px solid #d9dee3;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    border-color: #696cff;
    box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.1);
}

input.form-control::placeholder {
    color: #a1acb8 !important;
    opacity: 1 !important;
}

textarea.form-control {
    height: auto;
}

.form-label {
    font-weight: 500;
    color: #566a7f;
    font-size: 0.875rem;
    margin-bottom: 0.3rem;
}

.form-label.req::after {
    content: ' *';
    color: #ff3e1d;
}

.form-select {
    border-radius: 6px;
    border: 1px solid #d9dee3;
    height: 40px;
}

.form-select:focus {
    border-color: #696cff;
    box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.1);
}

/* --- Select2 --- */
.select2-container--default .select2-selection--single {
    border-radius: 6px !important;
    border: 1px solid #d9dee3 !important;
    height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #696cff !important;
}

.select2-dropdown {
    border: 1px solid #d9dee3 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(67, 89, 113, 0.12) !important;
}

/* =========================================
   BUTTONS - solid colors, no gradients
   ========================================= */
.btn {
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
    box-shadow: 0 2px 6px rgba(105, 108, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 10px rgba(105, 108, 255, 0.3);
}

.btn-outline-primary {
    border: 1px solid #696cff;
    color: #696cff;
}

.btn-outline-primary:hover {
    background: #696cff;
    color: #fff;
}

/* =========================================
   ALERTS - colored left accent bar
   ========================================= */
.alert {
    border-radius: 6px;
    font-size: 0.9rem;
    border: none;
}

.alert-success {
    background-color: #e9fbe0;
    color: #2d5816;
    border-left: 4px solid #71dd37;
}

.alert-danger {
    background-color: #ffe5e0;
    color: #66190c;
    border-left: 4px solid #ff3e1d;
}

.alert-warning {
    background-color: #fff5e0;
    color: #664400;
    border-left: 4px solid #ffab00;
}

.alert-info {
    background-color: #e0f7fc;
    color: #014e5e;
    border-left: 4px solid #03c3ec;
}

/* =========================================
   MODAL - cleaner
   ========================================= */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.modal-header {
    border-bottom: 1px solid #eceef1;
    padding: 1rem 1.25rem;
}

.modal-header .modal-title {
    font-weight: 600;
    color: #384551;
}

.modal-footer {
    border-top: 1px solid #eceef1;
    padding: 0.75rem 1.25rem;
}

/* --- Footer --- */
.content-footer .footer-link {
    color: #696cff;
    text-decoration: none;
}

/* --- Loading Spinner --- */
.spinner-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border {
    color: #696cff;
}

/* --- DataTables --- */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px !important;
    border: 1px solid #d9dee3 !important;
    padding: 0.35rem 0.65rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #696cff !important;
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 4px !important;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #696cff !important;
    border-color: #696cff !important;
    color: #fff !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-thumb {
    background: rgba(67, 89, 113, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 89, 113, 0.35);
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .table th, .table td {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}

.gap-10 {
    row-gap: 10px;
}

.admin-shortcut-menu {
    background-color: #f8f9fa;
    padding: 15px;
    background-clip: padding-box;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2) !important;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out !important;
    border-bottom: 5px solid #ededed !important;
    border-radius: 3px !important;
}

.admin-shortcut-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.admin-shortcut-menu ul li {
    display: inline-block;
    margin-right: 10px;
}

.admin-shortcut-menu ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border: 1px solid #016f01;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    background: #006f00;
    border-radius: 5px;
    transition: all .3s;
}

.admin-shortcut-menu ul li a:hover {
    background-color: #d42832;
    border: 1px solid #d42832;
}

.live-class-card .accordion-body {
    background: #f8f8f8;
    padding: 10px !important;
    border-radius: 10px;
    margin-top: 10px;
}

/* .accordion-header::after {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-left: auto;
	content: "";
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-size: 1.25rem;
	transition: transform .2s ease-in-out;
	right: 24px;
	position: absolute;
	top: 23px;
}
.accordion-button.collapsed::after {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	transform: rotate(-180deg);
    right: 24px;
	position: absolute;
	top: 23px;
} */

.parent-row {
        background-color: #e5e9ec; /* Blue background */
        color: #fff; /* White text */
    }

/* =========================================
   LIST PAGE ENHANCEMENTS (Global - all pages)
   ========================================= */

/* --- Page Title Bar --- */
.container-p-y > h4.fw-bold {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #384551;
    padding: 0.85rem 1.15rem !important;
    margin-bottom: 1rem !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(67, 89, 113, 0.08);
}

.container-p-y > h4.fw-bold > .text-muted {
    display: none;
}

/* Fix float:right buttons inside h4 */
.container-p-y > h4.fw-bold > a.btn,
.container-p-y > h4.fw-bold > .btn {
    float: none !important;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    margin: 0 !important;
    order: 2;
}

/* --- Filter Card --- */
.container-p-y > .card.p-4.mb-4,
.container-p-y > .card.p-3.mb-4 {
    padding: 0 !important;
    border: none;
    border-radius: 10px;
    margin-bottom: 1rem !important;
    overflow: hidden;
}

.container-p-y > .card.p-4.mb-4::before,
.container-p-y > .card.p-3.mb-4::before {
    content: "\ea5a  Search & Filters";
    font-family: 'boxicons' !important;
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #566a7f;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
}

.container-p-y > .card.p-4.mb-4 > form,
.container-p-y > .card.p-3.mb-4 > form {
    padding: 0.6rem 1rem 0.75rem;
}

/* Compact filter inputs */
.card.p-4.mb-4 .row .form-control,
.card.p-4.mb-4 .row .form-select,
.card.p-3.mb-4 .row .form-control,
.card.p-3.mb-4 .row .form-select {
    height: 34px;
    font-size: 0.82rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

/* Fix old gap-10 spacing */
.card .row.gap-10,
.card .row.gy-10 {
    row-gap: 0.5rem !important;
    gap: 0.5rem !important;
}

.card.p-4.mb-4 .row .btn,
.card.p-3.mb-4 .row .btn {
    font-weight: 600;
    font-size: 0.82rem;
    height: 34px;
    padding: 0.25rem 0.75rem;
}

/* --- Data Table Card --- */
.container-p-y > .card:last-of-type {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

/* Filter card */
.card form .row .form-control,
.card form .row .form-select {
    font-size: 0.85rem;
}

.card form .row .btn-primary {
    font-weight: 600;
}

/* Action buttons in table */
.table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1;
    border-radius: 5px;
}

.table .btn-sm .bx {
    font-size: 1rem;
}

.table .btn-sm:not([class*="btn-outline"]):not([class*="btn-primary"]):not([class*="btn-danger"]):not([class*="btn-warning"]):not([class*="btn-success"]):not([class*="text-danger"]) {
    border: 1px solid #e8ecf0;
    color: #697a8d;
    background: #fff;
    transition: all 0.15s;
}

.table .btn-sm:not([class*="btn-outline"]):not([class*="btn-primary"]):not([class*="btn-danger"]):not([class*="btn-warning"]):not([class*="btn-success"]):not([class*="text-danger"]):hover {
    background: #696cff;
    border-color: #696cff;
    color: #fff;
}

.table .btn-sm.text-danger {
    border: 1px solid #e8ecf0;
    background: #fff;
    border-radius: 5px;
    transition: all 0.15s;
}

.table .btn-sm.text-danger:hover {
    background: #ff3e1d;
    border-color: #ff3e1d;
    color: #fff !important;
}

.table .btn-outline-primary {
    border-color: #d9dee3;
    color: #696cff;
}

.table .btn-outline-primary:hover {
    background: #696cff;
    border-color: #696cff;
    color: #fff;
}

.table .btn-outline-danger {
    border-color: #d9dee3;
    color: #ff3e1d;
}

.table .btn-outline-danger:hover {
    background: #ff3e1d;
    border-color: #ff3e1d;
    color: #fff;
}

/* Associated courses / colspan rows */
.table tbody tr td[colspan] {
    background: #fafbfc;
    font-size: 0.85rem;
    padding-top: 0.35rem;
    padding-bottom: 0.55rem;
    border-top: none;
}

/* Empty state */
.table tbody td.text-center {
    padding: 2rem;
    color: #a1acb8;
    font-style: italic;
}

 