@font-face {
    font-family: 'QaidaFont';
    src: url('../fonts/qaida_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    height: 100%;
    margin: 0;
}

.authBody{
    background: #F0F0F1;
}

#content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body {
    font-family: "Poppins", sans-serif;
    /*background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);*/
}
#main {
    flex: 1;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.time-slot {
    position: relative;
    overflow: hidden;
}

.shift-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    padding: 5px;
    text-align: center;
    z-index: 1;
}

.time-slot>div {
    position: relative;
    z-index: 2;
}

.custom-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000;
    white-space: nowrap;
}

.tooltip-container:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* Arrow points downward */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

.disabled-btn {
    opacity: 0.4;
    cursor: not-allowed;
}

a.disabledEndButton {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Custom Colors   */
.bg-accent {
    background: #885c2d;
}
.bg-gradient-primary {
    background: linear-gradient(135deg, #4d2c08 0%, #885c2d 100%);
}
.text-gray {
    color: #afafaf;
}

/*  Custom Font Weights  */
.fw-400 {
    font-weight: 400;
}
.fw-500 {
    font-weight: 500;
}
.fw-600 {
    font-weight: 600;
}
.fw-700 {
    font-weight: 700;
}
.fw-800 {
    font-weight: 800;
}
.fw-bold {
    font-weight: bold;
}
.fw-bolder {
    font-weight: bolder;
}

/*  custom link  */
.c-link {
    text-decoration: none;
    color: #000;
}
.c-link:hover {
    color: #393939;
}

/*  Buttons  */
.primary-btn {
    border: none;
    background: #885c2d;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s ease-in-out;
}
.primary-btn:hover {
    background: #68441f;
}

.primary-outline-btn{
    border: 1px solid #885c2d;
    background: transparent;
    color: #885c2d;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s ease-in-out;
}
.primary-outline-btn:hover{
    background: #885c2d;
    color: #ffffff;
}

/* Cursor Not allowed  */
.not-allowed {
    cursor: not-allowed;
    user-select: none;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

/*  Custom Badges  */
.badge-success {
    padding: 8px 12px;
    color: #ffffff;
    background: #2e8b57;
    border-radius: 8px;
    font-size: 14px;
}
.badge-secondary {
    padding: 8px 12px;
    color: #ffffff;
    background: #474747;
    border-radius: 8px;
    font-size: 14px;
}

.loginCard {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border-radius: 8px; /* Optional: adds rounded corners */
    background: white; /* Ensure visibility on colored backgrounds */
}

/* Teacher Notes Page Styles */
.teacher-notes-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-notes-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.teacher-notes-card {
    border-radius: 12px;
}

.teacher-notes-table {
    margin-bottom: 0;
}

.teacher-notes-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.teacher-notes-table tbody tr {
    transition: background-color 0.2s ease;
}

.teacher-notes-table tbody tr.teacher-note-unread {
    background-color: #fffdf7;
    border-left: 3px solid #dc3545;
}

.teacher-notes-table tbody tr.teacher-note-unread:hover {
    background-color: #fff9e6;
}

.teacher-notes-table tbody tr.teacher-note-read {
    background-color: #ffffff;
}

.teacher-notes-table tbody tr.teacher-note-read:hover {
    background-color: #f8f9fa;
}

.teacher-note-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-width: 400px;
}

/* Dropdown menu styling */
.teacher-notes-table .dropdown-toggle {
    padding: 4px 8px;
    border-radius: 6px;
}

.teacher-notes-table .dropdown-toggle:hover {
    background-color: #e9ecef;
}

.teacher-notes-table .dropdown-item {
    font-size: 13px;
    padding: 8px 16px;
    transition: background-color 0.2s ease;
}

.teacher-notes-table .dropdown-item:hover {
    background-color: #f8f9fa;
}

.teacher-notes-table .dropdown-item i {
    width: 18px;
    text-align: center;
}

/* Pagination styling */
.teacher-notes-card .pagination {
    margin-bottom: 0;
}

.teacher-notes-card .pagination .page-link {
    font-size: 13px;
    padding: 6px 12px;
    color: #885c2d;
    border-color: #dee2e6;
}

.teacher-notes-card .pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #885c2d;
    color: #885c2d;
}

.teacher-notes-card .pagination .page-item.active .page-link {
    background-color: #885c2d;
    border-color: #885c2d;
    color: #fff;
}

@media (max-width: 768px) {
    .loginCard {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 50px auto; /* Adds space from top and bottom */
        padding: 5px;
    }
}
.AuthLogo{
    width: 180px;

}

.custom-dropdown .dropdown-menu {
    display: none;
    position: fixed; /* Use fixed positioning */
    background-color: #343a40; /* Dark background */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure it stays on top */
}

.custom-dropdown:hover .dropdown-menu {
    display: block;
}

.custom-dropdown .dropdown-menu a {
    color: #fff; /* White text color */
    padding: 12px 16px;
    font-size: 13px;
    text-decoration: none;
    display: block;
}

.custom-dropdown .dropdown-menu a:hover {
    background-color: #495057; /* Darker gray on hover */
}

/*  Custom Card CSS   */
.auth-card {
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
}
.registrationForm .form-label {
    font-size: 14px;
    font-weight: 600;
}

.registrationForm .form-input,
.registrationForm .form-input-select {
    font-size: 14px;
    padding: 8px 16px;
}
.registrationForm .form-input:focus,
.registrationForm .form-input-select:focus {
    box-shadow: none;
}

.main-body {
    background: #e9e8e8;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
    line-height: 1;
    text-decoration: none;
    display: flex;
    align-items: center;
}

@media (min-width: 1200px) {
    .logo {
        width: 280px;
    }
}

.logo img {
    max-height: 26px;
}

.logo .logo-text {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    font-family: "Nunito", sans-serif;
}
.logo .logo-sub-text {
    font-size: 13px;
}

.header {
    transition: all 0.5s;
    z-index: 997;
    height: 60px;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
    color: #fff;
    padding-left: 20px;
    /* Toggle Sidebar Button */
    /* Search Bar */
}

/*--------------------------------------------------------------
  # Header Nav
  --------------------------------------------------------------*/
.header-nav ul {
    list-style: none;
}

.header-nav > ul {
    margin: 0;
    padding: 0;
}

.header-nav .nav-icon {
    font-size: 18px;
    color: #4e4f50;
    position: relative;
}

.header-nav .nav-profile {
    color: #000;
}

.header-nav .nav-profile img {
    width: 40px;
    height: 35px;
}

.header-nav .nav-profile span {
    font-size: 14px;
    font-weight: 600;
}

.header-nav .badge-number {
    position: absolute;
    inset: -8px -6px auto auto;
    font-weight: normal;
    font-size: 9px;
    border-radius: 50%;
    padding: 4px 6px;
}

.header-nav .notifications {
    inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .notifications .notification-item i {
    margin: 0 20px 0 10px;
    font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .notifications .notification-item:hover {
    background-color: #f6f9ff;
}

.header-nav .messages {
    inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .messages .message-item a {
    display: flex;
}

.header-nav .messages .message-item img {
    margin: 0 20px 0 10px;
    max-height: 40px;
}

.header-nav .messages .message-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444444;
}

.header-nav .messages .message-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .messages .message-item:hover {
    background-color: #f6f9ff;
}

.header-nav .profile {
    min-width: 260px;
    padding: 4px 0;
    top: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    animation: profileDropdownFade 0.12s ease-out;
}

@keyframes profileDropdownFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header-nav .profile .dropdown-header {
    padding: 12px 16px 10px;
    background: linear-gradient(135deg, #fdf4ea 0%, #f7e2c9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-nav .profile .dropdown-header h6 {
    font-size: 15px;
    margin-bottom: 0;
    font-weight: 600;
    color: #3b2a18;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav .profile .dropdown-header h6 span {
    font-size: 11px;
}

.header-nav .profile .dropdown-header span {
    font-size: 13px;
}

.header-nav .profile .dropdown-divider {
    margin: 4px 0;
}

.header-nav .profile .dropdown-item {
    font-size: 13px;
    padding: 9px 16px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.1s ease;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav .profile .dropdown-item i {
    font-size: 14px;
    line-height: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5e7d8;
    color: #885c2d;
}

.header-nav .profile .dropdown-item span {
    font-size: 13px;
}

.header-nav .profile .dropdown-item:hover {
    background-color: #f8eee4;
    color: #1f1f1f;
    transform: translateX(1px);
}

.header-nav .profile .dropdown-item.logout-item i {
    background: #fde2e0;
    color: #c53030;
}

.header-nav .profile .dropdown-item.logout-item:hover {
    background-color: #fde7e5;
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagetitle h1 {
    font-size: 20px;
    margin-bottom: 0;
    font-weight: 600;
    color: #000;
}
.pagetitle h1 span {
    color: #525252;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/

/* Info Cards */
.card-icon-big {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card-text {
    text-align: left;
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 100%;
}
.card-text-right {
    text-align: right;
    position: absolute;
    bottom: 0px;
    right: 10px;
    width: 100%;
}

.card-text h5 {
    margin: 0;
    font-size: 14px;
}

.card-text h6 {
    margin: 0;
    font-size: 1.5rem;
    color: #000;
}

.info-card {
    position: relative;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard .info-card .card-body .card-title {
    color: #fff;
    font-size: 14px;
}

.table-card {
    background: #242526;
    color: #fff;
}
.datatable {
    background: #242526;
    font-size: 14px;
}
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.footer {
    .secondCol {
        .socialLinks {
            display: flex;
            gap: 5px;

            a {
                font-size: 16px;
                color: #fff;
                background: #6495ed;
                padding: 4px 8px;
                border-radius: 10px;
                background: #868686;
                color: #fff;
                transition: 0.3s ease-in-out;
            }

            .facebook:hover {
                background: #3b5998;
                color: #fff;
            }
            .instagram:hover {
                background: #ee2a7b;
                color: #fff;
            }
            .linkedin:hover {
                background: #0077b5;
                color: #fff;
            }
        }
    }
}
.footer-credits {
    background: #16191b;
}

/*   Dashboard Link Background colors   */

.bg-color-1 {
    background-color: #ff6347; /* Tomato */
}
.bg-color-2 {
    background-color: #4682b4; /* Steel Blue */
}
.bg-color-3 {
    background-color: #3cb371; /* Medium Sea Green */
}
.bg-color-4 {
    background-color: #cd5c5c; /* Indian Red */
}
.bg-color-5 {
    background-color: #b8860b; /* Dark Goldenrod */
}
.bg-color-6 {
    background-color: #a9a9a9; /* Dark Gray */
}
.bg-color-7 {
    background-color: #db7093; /* Pale Violet Red */
}
.bg-color-8 {
    background-color: #6495ed; /* Cornflower Blue */
}
.bg-color-9 {
    background-color: #2e8b57; /* Sea Green */
}
.bg-color-10 {
    background-color: #ff4500; /* Orange Red */
}
.bg-color-11 {
    background-color: #9932cc; /* Dark Orchid */
}
.bg-color-12 {
    background-color: #ff8c00; /* Dark Orange */
}
.bg-color-13 {
    background-color: #8a2be2; /* Blue Violet */
}
.bg-color-14 {
    background-color: #daa520; /* Goldenrod */
}
.bg-color-15 {
    background-color: #20b2aa; /* Light Sea Green */
}
.bg-color-16 {
    background-color: #bc8f8f; /* Rosy Brown */
}

/* Custom background colors */
.bg-color-primary {
    background-color: #bed5f9; /* Custom bg Primary Color */
}
.bg-color-info {
    background-color: #4eaba8; /* Custom bg Info Color */
}
.bg-color-success {
    background-color: #d6e9cb; /* Custom bg Success Color */
}
.bg-color-danger {
    background-color: #fdd5cf; /* Custom bg Danger Color */
}
.bg-color-warning {
    background-color: #f7f2a9; /* Custom bg Warning Color */
}

/*/ Custom Border Colors */
.border-primary {
    border-color: #8B652A !important;
}
.border-info {
    border-color: #4eaba8 !important;
}
.border-success {
    border-color: #c1f0a4 !important;
}
.border-danger {
    border-color: #f4b0a6 !important;
}
.border-warning {
    border-color: #f1e97f !important;
}

/* Override Bootstrap 5 primary color utilities */
:root {
    --bs-primary: #8B652A;
    --bs-primary-rgb: 139, 101, 42;
}

.btn-primary {
    color: #fff;
    background-color: #8B652A;
    border-color: #8B652A;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #6e4f22;
    border-color: #6e4f22;
}

.text-primary {
    color: #8B652A !important;
}

.bg-primary {
    background-color: #8B652A !important;
}

.list-style-none {
    list-style: none;
}
.list-style-none li {
    margin-bottom: 10px; /* Adjust the value for the desired gap */
}

/*  Custom Border Radius */
.rounded-sm {
    border-radius: 15px;
}
.rounded-md {
    border-radius: 25px;
}

/*  CUSTOM HR  */
.custom-hr {
    border: 0;
    height: 1px; /* Adjust the thickness */
    background-color: #8f8e8e; /* Your custom color */
    width: 100%; /* Adjust the width as needed */
}

/* ------------------------------------ */
/*  ADMIN ADD FORM   */
/* ------------------------------------ */
.add-form-card {
    border: none;
}
.add-form-card .card-header{
    border: none;
}
.add-form-card .card-title {
    font-size: 22px;
    font-weight: 600;
    color: #885c2d;
}
.add-form-card .add-form-card-label {
    font-size: 15px;
    font-weight: 500;
}
.add-form-card .add-form-card-input,
.add-form-card .add-form-card-select {
    font-size: 14px;
    padding: 10px 15px;
}

.add-form-card .add-form-card-input:focus,
.add-form-card .add-form-card-select:focus {
    box-shadow: none;
}

.add-form-card-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.add-form-card-check-input:checked {
    background-color: #885c2d;
    border: 2px solid #885c2d;
}

.add-form-card-check-input:focus {
    box-shadow: none;
}

.form-btns-background {
    background: #dad8d8;
    border-radius: 5px;
}
.add-form-card-submit-btn {
    border: none;
    box-shadow: none;
    background: #885c2d;
    color: #fff;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
}
.add-form-card-cancel-btn {
    border: none;
    box-shadow: none;
    background: #868686;
    color: #000;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
}


/**
// CUSTOM CARD
**/
.qg-card{
    border: none;
}
.qg-card .card-header {
    border: none;
}

.qg-card .form-label{
    font-size: 15px;
    font-weight: 500;
}

.qg-card .form-control:focus{
    box-shadow: none;
}
.qg-card .form-control{
    font-size: 14px;
    padding: 10px 15px;
}

/*  Asterik (Important Fields)   */
.ast {
    color: red;
}

/*  Breadcrumbs  */
.custom-breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: #000;
}

/*  Teachers Table   */

/* Ensure dropdown opens on hover */
.tags-dropdown:hover .tags-dropdown-menu {
    display: block;
    margin-top: 0;
    margin-right: 50px;
}

/* Optional: Adjust the width of the dropdown menu */
.tags-dropdown-menu {
    min-width: 90px;
}
.tags-dropdown-menu .dropdown-item {
    font-size: 13px;
}

.teachers-table-card, .table-card {
    border: none;
}
.teachers-table-card label {
    font-size: 14px;
    font-weight: 600;
}

.teachers-table-card .form-control:focus {
    box-shadow: none;
}

.parent-search-input-group .input-group-text.parent-search-icon {
    border-radius: 20px 0 0 20px;
    border-color: #885c2d;
    color: #885c2d;
}

.parent-search-input-group .parent-search-form-input {
    border-radius: 0 20px 20px 0;
    border-color: #885c2d;
}

.parent-search-input-group .parent-search-form-input:focus {
    border-color: #885c2d;
}

.pagination .page-link {
    color: #885c2d;
    font-size: 14px;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #885c2d;
    border-color: #885c2d;
}

.pagination .page-item.active .page-link {
    background-color: #885c2d;
    border-color: #885c2d;
    color: #fff;
}

.students-table-card {
    border: none;
}
.students-table-card label {
    font-size: 14px;
    font-weight: 600;
}

.students-table-card .form-control:focus {
    box-shadow: none;
}
.teacher-search-form-input {
    font-size: 14px;
}
.teacher-search-form-input:focus {
    box-shadow: none;
}

.teachersTab .nav-item .nav-link {
    font-size: 14px;
}

.teachersTab .nav-item .nav-link {
    border-radius: 0px;
    color: #fff;
}
.teachersTab .nav-item .nav-link.active {
    border-top: 2px solid red;
    background: #fff;
    color: #000;
}

/* Teacher Tabs Background Colors   */
.t-bg-color-1 {
    background-color: #8a2be2; /* Blue Violet */
}
.t-bg-color-2 {
    background-color: #daa520; /* Goldenrod */
}
.t-bg-color-3 {
    background-color: #20b2aa; /* Light Sea Green */
}
.t-bg-color-4 {
    background-color: #bc8f8f; /* Rosy Brown */
}

.teachersTableLink {
    text-decoration: none;
    color: #000;
}
.teachersTableLink:hover {
    text-decoration: underline;
}

.teacher-account-profile-img-container img {
    width: 100%;
    height: 250px;
}
.right-col-title h2 {
    font-size: 22px;
}

.right-col-sub-title h3 {
    font-size: 19px;
}
.teacher-data {
    font-size: 14px;
}
.teacher-data-label .teacher-data-value {
    font-weight: 600;
    color: #885c2d;
}
.teacher-account-profile-tabs .nav-item .nav-link {
    color: #000;
}
.teacher-account-profile-tabs .nav-item .nav-link.active {
    border-top: 2px solid red;
}

.teacher-profile-links a:hover {
    background: #f1f1f1;
}
.teacher-profile-links button:hover {
    background: #f1f1f1;
}

.custom-switch-green:checked {
    background-color: #28a745;
    /* Bootstrap green */
    border-color: #28a745;
}

/* Optional: make switch thumb white for contrast */
.custom-switch-green:checked:before {
    background-color: #fff;
}

/*  Teacher Schedule   */
.teacher-home-date-input {
    box-shadow: none;
    max-width: 150px;
    margin-left: 20px;
    font-size: 14px;
}

/* ─── Modern Schedule Table ─── */
.schedule-table-modern {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d4a76a;
    font-size: 13px;
}

.schedule-table-modern thead th {
    background: #885c2d;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    text-align: center;
    border: none;
    border-bottom: 2px solid #6b4722;
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule-table-modern thead th.time-column {
    width: 90px;
    min-width: 90px;
    background: #6b4722;
}

.schedule-table-modern tbody tr {
    transition: background-color 0.15s ease;
}

.schedule-table-modern .time-column-t {
    font-size: 11px;
    font-weight: 600;
    color: #6b4722;
    background: #fdf6ee;
    text-align: center;
    padding: 6px 8px;
    white-space: nowrap;
    border-right: 2px solid #e8d5be;
    vertical-align: middle;
}

/* Available slot — slightly lighter brown for contrast with occupied */
.schedule-table-modern .sched-available {
    background: rgb(156, 104, 44) !important;
    padding: 4px !important;
    vertical-align: middle;
    position: relative;
    border: 1px solid #7a5228;
    transition: background-color 0.15s ease;
}
.schedule-table-modern .sched-available:hover {
    background: #a97636 !important;
}

.sched-empty-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.sched-available:hover .sched-empty-actions {
    opacity: 1;
}

.sched-add-class-btn,
.sched-add-break-btn {
    border: none;
    background: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s ease;
}
.sched-add-class-btn {
    color: #fff;
}
.sched-add-class-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.sched-add-break-btn {
    color: rgba(255,255,255,0.85);
}
.sched-add-break-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* Unavailable slot */
.schedule-table-modern .sched-unavailable {
    background: #c40a19 !important;
    padding: 4px !important;
    border: 1px solid #a80815;
    position: relative;
}

/* Class cell */
.schedule-table-modern .sched-class {
    background: #573716 !important;
    color: #fff;
    padding: 8px !important;
    vertical-align: middle;
    text-align: center;
    position: relative;
    border: 1px solid #452c11;
    transition: background-color 0.15s ease;
}
.schedule-table-modern .sched-class:hover {
    background: #6b4722 !important;
}

/* Break cell */
.schedule-table-modern .sched-break {
    background: #330d02 !important;
    color: #fef2f2;
    padding: 8px !important;
    vertical-align: middle;
    text-align: center;
    position: relative;
    border: 1px solid #2a0a01;
    transition: background-color 0.15s ease;
}
.schedule-table-modern .sched-break:hover {
    background: #4a1203 !important;
}

/* Cell content layout */
.sched-cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 100%;
}

.sched-cell-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sched-student-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.sched-student-link {
    color: #fcd9a8;
    text-decoration: none;
    transition: color 0.15s ease;
}
.sched-student-link:hover {
    color: #ffe4c2;
    text-decoration: underline;
}

.sched-time-info {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

.sched-day-info {
    font-size: 10px;
    opacity: 0.65;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sched-duration {
    font-size: 9px;
    background: rgba(255,255,255,0.15);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 500;
}

/* Badges */
.sched-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.sched-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    border: none;
    cursor: default;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.4;
}

.sched-badge-permanent {
    background: #06b6d4;
    color: #0c4a6e;
    cursor: pointer;
}
.sched-badge-permanent:hover {
    background: #22d3ee;
}

.sched-badge-temp-shift {
    background: #fbbf24;
    color: #78350f;
    cursor: pointer;
}
.sched-badge-temp-shift:hover {
    background: #fcd34d;
}

.sched-badge-temporary {
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-transform: none;
}

/* Action buttons */
.sched-actions {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.sched-class:hover .sched-actions,
.sched-break:hover .sched-actions {
    opacity: 1;
}

.sched-action-btn {
    border: none;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s ease;
    padding: 0;
}
.sched-action-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: scale(1.08);
}
.sched-action-btn.dlt-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

/* Teacher details header */
.teacher-schedule-teacher-details p {
    font-size: 16px;
    margin: 0;
}
.teacher-schedule-teacher-details p span {
    color: #885c2d;
    font-weight: 600;
}

/*  ============================  */
/*  Add Class Modal  */
/*  ============================  */

.addClassModalForm .form-label {
    font-size: 14px;
    font-weight: 600;
}

.addClassModalForm .form-input,
.addClassModalForm .form-select {
    font-size: 14px;
    padding: 10px 15px;
}
.addClassModalForm .form-input option {
    font-size: 14px;
}
.addClassModalForm .form-input:focus,
.addClassModalForm .form-select:focus,
.addClassModalForm .form-check-input:focus {
    box-shadow: none;
}
.addClassModalForm .form-check-input {
    padding: 8px;
}
.addClassModalForm .form-check-input:checked {
    background-color: #885c2d;
    border: 2px solid #885c2d;
}
.addClassModalForm .form-check-label {
    font-size: 14px;
    margin-left: 5px;
}

.addClassModalForm .modal-footer .btn-add {
    background: #885c2d;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    color: #fff;
    transition: 0.3s ease-in-out;
}
.addClassModalForm .modal-footer .btn-add:hover {
    background: #6a4621;
}

.addClassModalForm .modal-footer .btn-cancel {
    background: #9c9c9c;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    color: #fff;
    transition: 0.3s ease-in-out;
}
.addClassModalForm .modal-footer .btn-cancel:hover {
    background: #7a7a7a;
}

/*
--------------------------
Teacher
--------------------------   
  */

.courseMaterial .nav-tabs .nav-item .nav-link {
    font-size: 14px;
    color: #000;
}
.courseMaterial .nav-tabs .nav-item .nav-link.active {
    border-top: 2px solid #ff4500;
}

.courseContent .courseDesc .courseTitle {
    text-decoration: none;
    font-size: 18px;
    color: #000;
}
.courseContent .courseDesc p {
    margin: 0;
}
.courseContent .courseDesc .courseTitle:hover {
    color: #444444;
}

/* Star Rating System */
.star-rating {
    display: inline-block;
}

.star {
    font-size: 18px;
    cursor: pointer;
    color: #ffd700;
    transition: color 0.3s ease;
}
.bg-color-main {
    border: none;
    box-shadow: none;
    background: #885c2d;
    color: #fff;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}
.bg-color-main:hover {
    background: #885c2d;
    color: #fff;
}
.text-color-primary {
    color: #885c2d;
}
.text-color-sec {
    color: #bebebe;
}
.font-weight-600 {
    font-weight: 600;
}

.tarteel-qaida-lesson .chap-no {
    font-size: 25px;
    font-weight: 500;
    color: #311d08;
    margin: 0;
}

.tarteel-qaida-lesson .chap-name {
    font-size: 40px;
    font-weight: 600;
    color: #885c2d;
    margin: 0;
}
.tarteel-qaida-lesson .lesson-no {
    font-size: 20px;
    font-weight: 500;
    color: #311d08;
    margin: 0;
}
.tarteel-qaida-lesson .lesson-name {
    font-size: 30px;
    font-weight: 400;
    color: #885c2d;
    margin: 0;
}

.rtl {
    direction: rtl;
}
.qaida-box {
    background: linear-gradient(to top, #885c2d, #be8241);
    border-radius: 40px;
}
.qaida-box .card-body {
    line-height: 140px;
}
.amiri {
    font-family: "QaidaFont", serif;
}
.qaida-box .qaida-box-text {
    font-size: 80px;
    color: #fff;
    font-weight: 500;
}
.lesson-img {
    width: 100%;
    /* Ensures the image takes full width of its container */
    height: auto;
    /* Maintains the aspect ratio */
    max-height: 150px;
    /* Limits the height for uniformity */
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
    border-radius: 8px;
    /* Optional: Adds rounded corners for a better look */
}

/* Media query for smaller screens */
@media (max-width: 576px) {
    .lesson-img {
        max-height: 120px;
        /* Adjusts the height for small screens */
    }
}

@media (max-width: 768px) {
    .lesson-img {
        max-height: 130px;
        /* Slightly reduces height on tablets */
    }
}
.start_lesson {
    text-align: center;
    font-size: 60px;
    font-family: "Lateef", serif;
    color: #895c2d;
}

.alert-custom {
    background: #b0783e;
}
.alert-custom .oob {
    color: #f6ff66;
    font-size: 20px;
    margin-left: 30px;
}
.alert-custom .ins {
    font-size: 30px;
    color: #fff;
}
.letter {
    font-size: 50px;
    color: #fff;
}
.dis {
    font-size: 25px;
    color: #ffaf00;
}
.alert-one {
    background-image: linear-gradient(#b58b67, #ad8f6e);
    border-color: #895c2d;
    color: #000;
    transition: 0.3s all;
}
.alert-one:hover {
    border-color: #fff;
    color: #fff;
    z-index: 10;
}
.alert-two {
    background-image: linear-gradient(#b58b67, #ad8f6e);
    border-color: #895c2d;
    color: #000;
    transition: 0.3s all;
}
.alert-two:hover {
    background-image: linear-gradient(#000000, #222323);
    border-color: #fff;
    color: #fff;
    scale: 1.3;
    z-index: 10;
}

.alert-three {
    background-image: linear-gradient(#b58b67, #ad8f6e);
    border-color: #895c2d;
    color: #000;
    transition: 0.3s all;
}
.alert-three:hover {
    background-image: linear-gradient(#000000, #222323);
    border-color: #fff;
    color: #fff;
    z-index: 10;
}
.alert-three:hover td {
    color: #fff;
}
.alert {
    border-width: 3px;
    border-radius: 25px;
}
.pt {
    text-align: center;
    vertical-align: middle;
    font-size: 80px;
    margin: 10px;
}
.boldone:hover {
    color: #fa2300;
}

.modal-table-td{
    font-size: 150px;
    unicode-bidi: embed;
    padding: 40px;
}
.fs-150{
    font-size: 150px;
}
.text-box {
    width: 100%;
    height: 217px;
    display: table-cell;
    vertical-align: middle;
}

.text-box span {
    display: inline-block;
}

/* Custom button class */

.custom-btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Previous button styles */
.custom-btn-previous {
    background-color: #e74c3c;
}

.custom-btn-previous:hover {
    background-color: #c0392b;
}

/* Next button styles */
.custom-btn-next {
    background-color: #2ecc71;
}

.custom-btn-next:hover {
    background-color: #27ae60;
}

/* Custom navigation container */
 .custom-navigation {
     position: fixed;
     max-width: 400px;
     top: 120px;
     left: 10px;
     display: flex;
     flex-wrap: wrap;
     /* Stack elements vertically */
     align-items: flex-start;
     /* Align elements to the left */
     gap: 5px;
     z-index: 9999;
 }
/* Previous button styling */
.custom-navigation-prev {
    position: relative;
}

/* Next button styling */
.custom-navigation-next {
    display: flex;
    gap: 5px;
    flex-direction: row;
    font-size: 12px;
}
.custom-navigation select {
    width: 30%;
    /* Make select dropdown the full width */
}

.custom-btn-copy{
    background-color: #db7093;
    color: #fff;
    font-size: 12px;
}
.custom-navigation-prev a .custom-btn-previous{
    font-size: 12px;
}
.custom-navigation-next a .custom-btn-next{
    font-size: 12px;
}

.modal-content .alert {
    border: 10px solid #fff !important;
}
.pt1 {
    text-align: center;
    vertical-align: middle;
    font-size: 30px;
    margin: 5px;
}
.taken-badge {
    opacity: 0.6 !important;
    padding: 10px;
    font-weight: 500;
    font-size: 11px;
    cursor: not-allowed;
    user-select: none;
}

.requests-page-card-title {
    color: #895c2d;
    font-size: 15px;
    margin: 0;
}

.divider {
    border: 0; /* Remove default border */
    border-top: 2px solid #895c2d; /* Horizontal line style */
    margin: 10px 0; /* Space above and below the line */
}

/* Edit Picture Modal  */
.editPicModalWrapper .currentPicWrapper {
    img {
        width: 140px;
        height: 140px;
        border-radius: 10px;
        object-fit: contain;
    }
}
.editPicModalWrapper {
    .form-control {
        box-shadow: none;
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Vertical Line  */

.vertical-line {
    position: relative;
    width: 1px;
    height: 25px;
    background-color: #ddd;
}

#TeacherRequestsTabs .nav-link {
    color: #000;
}
#TeacherRequestsTabs .nav-link.active {
    background-color: #885c2d;
    color: #fff;
}

/*  PAY NOW BUTTON   */
.payNowButton {
    text-decoration: none;
    margin: 0;
    padding: 8px 10px;
    border: none;
    background: #2e8b57;
    color: #f3f3f3;
    font-size: 13px;
    border-radius: 4px;
    transition: 0.3s ease-in-out;
}
.payNowButton:hover {
    background: #21663f;
}



.task-item {
    transition: all 0.3s ease;
    border-left: 4px solid var(--bs-primary);
}

.task-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.task-title {
    color: #885c2d;
    font-weight: 600;
    font-size: 16px;
}

.task-description {
    white-space: pre-wrap;
    line-height: 1.6;
}

.active-task-filter {
    background-color: #885c2d !important;
    color: white !important;
}

.active-task-filter .badge {
    background-color: white !important;
    color: #000000 !important;
}

.task-response {
    border-left: 3px solid var(--bs-success);
}


/* Admin Dairy Notes / Reminders */ 
.reminder-item {
    transition: all 0.3s ease;
    border-left: 4px solid var(--bs-primary);
}

.reminder-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reminder-title {
    color: #885c2d;
    font-weight: 600;
    font-size: 14px;
}

.reminder-note {
    white-space: pre-wrap;
    line-height: 1.6;
}

.completed-reminder {
    opacity: 0.8;
    border-left-color: var(--bs-success);
}

/* Smooth background blink animation */
@keyframes smoothBlink {
    0% {
        background-color: rgba(220, 53, 69, 0.1);
    }

    50% {
        background-color: rgba(220, 53, 69, 0.3);
    }

    100% {
        background-color: rgba(220, 53, 69, 0.1);
    }
}

.reminder-overdue {
    animation: smoothBlink 2s infinite ease-in-out;
    border-left: 4px solid #dc3545;
    transition: all 0.3s ease;
}

.reminder-overdue:hover {
    animation: none;
    background-color: rgba(220, 53, 69, 0.1);
}



/* Button Loading States */
.btn[disabled],
.btn.loading {
    cursor: not-allowed;
    position: relative;
}

/* Smooth transition for opacity changes */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s ease-in-out;
}

/* Loading spinner animation */
.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.15em;
}

/* Prevent double-click during loading */
.button-group .btn[disabled] {
    user-select: none;
}

/* Loading state for badge buttons */
.badge.btn[disabled] {
    opacity: 0.6;
}

/* Ensure spinner is visible on all badge colors */
.badge .spinner-border {
    border-color: currentColor;
    border-right-color: transparent;
}

/* Recording indicator styles */
#recording-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#recording-indicator i {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}




/* ========================================
   TEACHERS LIST - ENHANCED STYLES
   ======================================== */

/* Teachers Category Tabs */
.teachers-category-tabs {
    margin-bottom: 0;
    border-bottom: 2px solid #dee2e6;
}

.teachers-category-tabs .nav-item {
    margin-bottom: -2px;
}

.teachers-category-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.teachers-category-tabs .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.teachers-category-tabs .nav-link.active {
    background-color: #fff;
    color: #000;
    border-bottom-color: #dc3545;
}

/* Tab Color Classes */
.t-bg-color-1 {
    background-color: #8a2be2;
}

.t-bg-color-2 {
    background-color: #daa520;
}

.t-bg-color-3 {
    background-color: #20b2aa;
}

.t-bg-color-4 {
    background-color: #bc8f8f;
}

/* Teachers Table Card */
.teachers-table-card {
    border-radius: 10px;
    overflow: hidden;
}

.teachers-table-card .card-header {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 16px 20px;
}

/* Search Input */
.teacher-search-form-input {
    border: 1px solid #ddd;
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.teacher-search-form-input:focus {
    border-color: #885c2d;
    box-shadow: 0 0 0 0.15rem rgba(136, 92, 45, 0.15);
    outline: 0;
}

.input-group-text {
    border-radius: 6px 0 0 6px;
}

/* Teachers List Table */
.teachers-list-table {
    font-size: 13px;
}

.teachers-list-table thead {
    background: linear-gradient(135deg, #885c2d 0%, #9c682c 100%);
    color: #fff;
}

.teachers-list-table thead th {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 14px 12px;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}

.teachers-list-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.teachers-list-table tbody tr:last-child {
    border-bottom: none;
}

.teachers-list-table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.teachers-list-table tbody tr:hover {
    background-color: #fafafa;
}

/* Table Row States */
.teachers-list-table tbody tr.table-danger {
    background-color: rgba(220, 53, 69, 0.08);
}

.teachers-list-table tbody tr.table-danger:hover {
    background-color: rgba(220, 53, 69, 0.12);
}

/* Teacher Name Link */
.teachers-list-table .teacher-name a {
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.teachers-list-table .teacher-name a:hover {
    color: #885c2d;
}

/* Badge Styling */
.teachers-list-table .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Toggle Status Button */
.toggle-status {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.toggle-status:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-status:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tags Dropdown */
.tags-dropdown-menu {
    min-width: 140px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tags-dropdown-menu .dropdown-item {
    padding: 8px 16px;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.tags-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #885c2d;
}

/* Empty State */
.empty-state {
    padding: 40px 20px;
}

.empty-state i {
    opacity: 0.5;
}

/* Modal Enhancements */
#teacherUnavailable .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#teacherUnavailable .modal-header {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 16px 20px;
}

#teacherUnavailable .modal-title {
    font-size: 16px;
    color: #333;
}

#teacherUnavailable .form-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

#teacherUnavailable .form-control {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
}

#teacherUnavailable .form-control:focus {
    border-color: #885c2d;
    box-shadow: 0 0 0 0.15rem rgba(136, 92, 45, 0.15);
}

#teacherUnavailable .form-check {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

#teacherUnavailable .form-check:hover {
    background-color: #f8f9fa;
}

#teacherUnavailable .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    cursor: pointer;
}

#teacherUnavailable .form-check-input:checked {
    background-color: #885c2d;
    border-color: #885c2d;
}

#teacherUnavailable .form-check-label {
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
}

#teacherUnavailable .btn {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

#teacherUnavailable .btn-primary {
    background-color: #885c2d;
    border-color: #885c2d;
}

#teacherUnavailable .btn-primary:hover {
    background-color: #6a4621;
    border-color: #6a4621;
}

/* Sticky Table Header */
.table-header-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #885c2d;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #6a4621;
}

/* Loading States */
.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.125em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .teachers-list-table {
        font-size: 12px;
    }
    
    .teachers-list-table thead th,
    .teachers-list-table tbody td {
        padding: 10px 8px;
    }
}

@media (max-width: 992px) {
    .teachers-category-tabs .nav-link {
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .teachers-list-table thead th {
        font-size: 10px;
        padding: 10px 6px;
    }
    
    .teachers-list-table tbody td {
        padding: 10px 6px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .teachers-category-tabs .nav-link {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .teachers-table-card .card-header {
        padding: 12px 16px;
    }
    
    .teachers-list-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .teachers-list-table .badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 576px) {
    .teachers-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .teachers-category-tabs .nav-link {
        white-space: nowrap;
    }
    
    .teachers-list-table thead th {
        font-size: 9px;
        padding: 8px 4px;
    }
    
    .teachers-list-table tbody td {
        font-size: 11px;
        padding: 8px 4px;
    }
}

/* Print Styles */
@media print {
    .teachers-table-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .teachers-table-card .card-header {
        background: #fff !important;
        border-bottom: 2px solid #000;
    }
    
    .teachers-list-table thead {
        background: #885c2d !important;
        color: #fff !important;
    }
    
    .toggle-status,
    .tags-dropdown,
    .teacherUnavailableBtn {
        display: none !important;
    }
}

/* Accessibility */
.teachers-list-table a:focus,
.teachers-list-table button:focus,
.teacher-search-form-input:focus {
    outline: 2px solid #885c2d;
    outline-offset: 2px;
}

/* Animation for Row Hover */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.teacher-row {
    animation: fadeIn 0.3s ease-in;
}




/* Sticky Left Sidebar — desktop only */
@media (min-width: 992px) {
    .teacher-profile-card .col-lg-3 {
        position: sticky;
        top: 15px;
        align-self: flex-start;
        max-height: calc(100vh - 30px);
        overflow-y: auto;
    }
}

/* Profile Picture */
.profile-picture-wrapper .profile-picture {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #fff;
}

.edit-picture-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Actions Menu */
.profile-actions-menu {
    border-radius: 6px;
    overflow: hidden;
}

.profile-actions-menu .list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.2s ease;
}

.profile-actions-menu .list-group-item-action:hover {
    background-color: #f8f9fa;
    padding-left: 14px;
}

/* Status Toggles Card */
.status-toggles-card {
    border-radius: 6px;
}

.status-toggle {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
}

.status-toggle:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Profile Header */
.profile-header h2 {
    color: #2c3e50;
}

.status-action-card {
    border: 1px solid #e9ecef;
}

/* Info Items */
.info-item label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Tabs */
.parent-profile-tabs {
    border-bottom: 2px solid #dee2e6;
}

.parent-profile-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.parent-profile-tabs .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.parent-profile-tabs .nav-link.active {
    color: #885c2d;
    border-bottom-color: #885c2d;
    background-color: transparent;
}

/* Gradient Background */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Font Sizes */
.fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-17 { font-size: 17px !important; }
.fs-18 { font-size: 18px !important; }
.fs-19 { font-size: 19px !important; }
.fs-20 { font-size: 20px !important; }
.fs-24 { font-size: 24px !important; }

/* Responsive */
@media (max-width: 1199px) {
    .profile-picture-wrapper .profile-picture {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 991px) {
    .profile-picture-wrapper .profile-picture {
        width: 100px;
        height: 100px;
    }
    
    .status-action-card {
        margin-top: 0.5rem;
    }
    
    .profile-actions-menu .list-group-item {
        padding: 8px 10px;
    }
}

@media (max-width: 767px) {
    .profile-picture-wrapper .profile-picture {
        width: 90px;
        height: 90px;
    }
    
    .parent-profile-tabs .nav-link {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .profile-header h2 {
        font-size: 18px !important;
    }
    
    .status-action-card {
        padding: 1rem !important;
    }
}

@media (max-width: 575px) {
    .parent-profile-tabs {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .parent-profile-tabs .nav-item {
        display: inline-block;
    }
    
    .profile-actions-menu .list-group-item {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .edit-picture-btn {
        width: 24px;
        height: 24px;
    }
    
    .status-toggle {
        width: 2rem;
        height: 1rem;
    }
}

@media (max-width: 400px) {
    .profile-picture-wrapper .profile-picture {
        width: 80px;
        height: 80px;
    }

    .profile-header h2 {
        font-size: 16px !important;
    }
}


/* ============================================================
   MODERN NAVBAR
   ============================================================ */

.modern-navbar {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 990;
}

.modern-navbar__inner {
    display: flex;
    align-items: center;
}

.modern-navbar__toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.modern-navbar__toggle:hover {
    background: rgba(255,255,255,0.1);
}

.modern-navbar__collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.modern-navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.modern-navbar__item {
    position: relative;
}

.modern-navbar__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border-radius: 6px;
    margin: 4px 0;
}

.modern-navbar__link i:first-child {
    font-size: 15px;
}

.modern-navbar__link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.modern-navbar__link--active {
    color: #fff;
    background: rgba(136,92,45,0.4);
}

.modern-navbar__link--active:hover {
    background: rgba(136,92,45,0.5);
}

.modern-navbar__link--logout {
    color: #f87171;
}

.modern-navbar__link--logout:hover {
    color: #fca5a5;
    background: rgba(248,113,113,0.1);
}

.modern-navbar__chevron {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s;
}

.modern-navbar__item--dropdown:hover .modern-navbar__chevron {
    transform: rotate(180deg);
}

/* --- Search --- */
.modern-navbar__search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.2s;
}

.modern-navbar__search:focus-within {
    background: rgba(255,255,255,0.12);
    border-color: rgba(136,92,45,0.5);
}

.modern-navbar__search-icon {
    color: #64748b;
    font-size: 14px;
    margin-right: 8px;
}

.modern-navbar__search-input {
    background: none;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 13px;
    padding: 8px 0;
    width: 180px;
}

.modern-navbar__search-input::placeholder {
    color: #64748b;
}

/* --- Modern Dropdown (simple) --- */
.modern-dropdown {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    padding: 8px;
    min-width: 240px;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 4px !important;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modern-dropdown.show {
    opacity: 1;
    transform: translateY(0);
}

.modern-dropdown--scrollable {
    max-height: 440px;
    overflow-y: auto;
    min-width: 280px;
}

.modern-dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.modern-dropdown__link i {
    font-size: 15px;
    color: #64748b;
    width: 20px;
    text-align: center;
}

.modern-dropdown__link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modern-dropdown__link:hover i {
    color: #885c2d;
}

.modern-dropdown__group {
    padding: 4px 0;
}

.modern-dropdown__group + .modern-dropdown__group {
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 8px;
}

.modern-dropdown__group-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px 6px;
}

/* --- Megamenu (admin options) --- */
.modern-megamenu {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    padding: 16px;
    min-width: 480px;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 4px !important;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modern-megamenu.show {
    opacity: 1;
    transform: translateY(0);
}

.modern-megamenu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modern-megamenu__section {
    display: flex;
    flex-direction: column;
}

.modern-megamenu__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #885c2d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 8px 8px;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.modern-megamenu__heading i {
    font-size: 14px;
}

.modern-megamenu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.modern-megamenu__link i {
    font-size: 15px;
    color: #64748b;
    width: 20px;
    text-align: center;
}

.modern-megamenu__link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modern-megamenu__link:hover i {
    color: #885c2d;
}

.modern-megamenu__link--active {
    background: #fdf4ea;
    color: #885c2d;
}

.modern-megamenu__link--active i {
    color: #885c2d;
}

.modern-megamenu__footer {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

/* dropdownFadeIn keyframe removed — using CSS transitions on .show instead */

/* --- Navbar Responsive --- */
@media (max-width: 991px) {

    .modern-navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* --- Toggle Button --- */
    .modern-navbar__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 8px 0;
        padding: 8px 14px;
        font-size: 18px;
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 8px;
        background: rgba(255,255,255,0.05);
        color: #e2e8f0;
    }

    .modern-navbar__toggle:hover,
    .modern-navbar__toggle:focus {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.25);
        outline: none;
    }

    /* --- Collapse Container --- */
    .modern-navbar__collapse {
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid #334155;
        padding-bottom: 8px;
    }

    .modern-navbar__collapse:not(.show):not(.collapsing) {
        display: none !important;
    }

    .modern-navbar__collapse.collapsing,
    .modern-navbar__collapse.show {
        display: flex !important;
    }

    /* --- Menu List --- */
    .modern-navbar__menu {
        flex-direction: column;
        gap: 0;
        padding: 8px 0 4px;
    }

    /* --- Nav Links --- */
    .modern-navbar__link {
        padding: 11px 14px;
        margin: 0;
        border-radius: 8px;
        font-size: 14px;
        color: #cbd5e1;
    }

    .modern-navbar__link:hover {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .modern-navbar__link--active {
        background: rgba(136,92,45,0.3);
        color: #fff;
    }

    .modern-navbar__link i:first-child {
        font-size: 16px;
        width: 22px;
        text-align: center;
    }

    /* --- Chevron rotation when dropdown is open --- */
    .modern-navbar__item--dropdown .modern-navbar__link[aria-expanded="true"] .modern-navbar__chevron {
        transform: rotate(180deg);
    }

    /* --- Search Bar --- */
    .modern-navbar__search {
        margin: 6px 0 8px;
        border-radius: 8px;
        padding: 0 14px;
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.1);
    }

    .modern-navbar__search-input {
        width: 100%;
        padding: 10px 0;
        font-size: 14px;
    }

    /* =============================================
       MOBILE DROPDOWN — Dark inline style
       ============================================= */
    .modern-dropdown {
        position: static !important;
        min-width: 100% !important;
        margin-top: 0 !important;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255,255,255,0.04);
        border-top: 1px solid #334155;
        border-bottom: 1px solid #334155;
        padding: 6px 0 6px 12px;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .modern-dropdown.show {
        opacity: 1;
        transform: none;
    }

    .modern-dropdown--scrollable {
        max-height: 60vh;
        overflow-y: auto;
        min-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    /* Dropdown links — dark theme on mobile */
    .modern-dropdown__link {
        color: #cbd5e1;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 13.5px;
    }

    .modern-dropdown__link i {
        color: #64748b;
        font-size: 14px;
        width: 20px;
    }

    .modern-dropdown__link:hover,
    .modern-dropdown__link:active {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .modern-dropdown__link:hover i,
    .modern-dropdown__link:active i {
        color: #d4a574;
    }

    /* Group labels — lighter color on dark bg */
    .modern-dropdown__group-label {
        color: #64748b;
        padding: 6px 14px 4px;
        font-size: 10px;
    }

    .modern-dropdown__group + .modern-dropdown__group {
        border-top: 1px solid #334155;
        margin-top: 4px;
        padding-top: 6px;
    }

    /* =============================================
       MOBILE MEGAMENU — Dark inline style
       ============================================= */
    .modern-megamenu {
        position: static !important;
        min-width: 100% !important;
        margin-top: 0 !important;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255,255,255,0.04);
        border-top: 1px solid #334155;
        border-bottom: 1px solid #334155;
        padding: 10px 0 10px 12px;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .modern-megamenu.show {
        opacity: 1;
        transform: none;
    }

    .modern-megamenu__grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .modern-megamenu__heading {
        color: #d4a574;
        border-bottom-color: #334155;
        font-size: 10px;
        padding: 6px 8px 6px;
        margin-bottom: 2px;
    }

    .modern-megamenu__heading i {
        font-size: 13px;
    }

    .modern-megamenu__link {
        color: #cbd5e1;
        padding: 9px 10px;
        border-radius: 6px;
        font-size: 13.5px;
    }

    .modern-megamenu__link i {
        color: #64748b;
        font-size: 14px;
    }

    .modern-megamenu__link:hover,
    .modern-megamenu__link:active {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .modern-megamenu__link:hover i,
    .modern-megamenu__link:active i {
        color: #d4a574;
    }

    .modern-megamenu__link--active {
        background: rgba(136,92,45,0.2);
        color: #d4a574;
    }

    .modern-megamenu__link--active i {
        color: #d4a574;
    }

    .modern-megamenu__footer {
        flex-direction: column;
        gap: 0;
        margin-top: 4px;
        padding-top: 6px;
        border-top-color: #334155;
    }

    /* --- Logout link --- */
    .modern-navbar__link--logout {
        margin-top: 4px;
        border-top: 1px solid #334155;
        padding-top: 12px;
        border-radius: 0 0 8px 8px;
        color: #f87171;
    }

    .modern-navbar__link--logout:hover {
        background: rgba(248,113,113,0.08);
        color: #fca5a5;
    }
}


/* ============================================================
   ADMIN DASHBOARD - MODERN UI REDESIGN
   ============================================================ */

/* --- Page Header --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.page-header__left {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.page-header__datetime {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #fff;
    filter: brightness(1.05);
}

.stat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.stat-card__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-card__label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card__value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

/* Stat card color variants — full background colors */
.stat-card--total        { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-card--taken        { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card--remaining    { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-card--running      { background: linear-gradient(135deg, #a855f7, #9333ea); }
.stat-card--absent       { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.stat-card--leave        { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card--suspended    { background: linear-gradient(135deg, #ec4899, #db2777); }
.stat-card--trial        { background: linear-gradient(135deg, #f97316, #ea580c); }
.stat-card--students     { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.stat-card--rescheduled  { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.stat-card--current      { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.stat-card--fee          { background: linear-gradient(135deg, #885c2d, #6e4a23); }
.stat-card--trial-students { background: linear-gradient(135deg, #e879f9, #c026d3); }
.stat-card--dst           { background: linear-gradient(135deg, #0ea5e9, #0369a1); }

/* --- Filter Section --- */
.filter-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.filter-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.filter-card__header i {
    font-size: 16px;
    color: #885c2d;
}

.filter-card__body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    align-items: flex-end;
}

.filter-field {
    flex: 1;
    min-width: 180px;
}

.filter-field--actions {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: auto;
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.filter-field__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-field__input {
    font-size: 13px !important;
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    transition: all 0.2s;
}

.filter-field__input:focus {
    border-color: #885c2d !important;
    box-shadow: 0 0 0 3px rgba(136,92,45,0.1) !important;
    background: #fff !important;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.filter-btn--apply {
    background: #885c2d;
    color: #fff;
}

.filter-btn--apply:hover {
    background: #6e4a23;
    color: #fff;
}

.filter-btn--clear {
    background: #f1f5f9;
    color: #64748b;
}

.filter-btn--clear:hover {
    background: #e2e8f0;
    color: #475569;
}

.filter-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 14px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.filter-tag__remove {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    transition: color 0.2s;
}

.filter-tag__remove:hover {
    color: #ef4444;
}

/* --- Classes Table Card --- */
.classes-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.classes-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.classes-card__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.classes-card__date {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    background: #f0fdf4;
    color: #166534;
    padding: 4px 12px;
    border-radius: 6px;
}

.classes-card__status-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 6px;
}

.classes-card__count {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

/* --- Table Styles --- */
.classes-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.classes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.classes-table thead th {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.classes-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b !important;
}

.classes-table tbody tr:last-child td {
    border-bottom: none;
}

.classes-table tbody tr:hover {
    filter: brightness(0.96);
}

/* Row status backgrounds — light, visually appealing pastel tints */
.classes-table tbody tr.row-bg--taken,
.mobile-class-card.row-bg--taken       { background-color: #dcfce7 !important; }

.classes-table tbody tr.row-bg--absent,
.mobile-class-card.row-bg--absent      { background-color: #fee2e2 !important; }

.classes-table tbody tr.row-bg--leave,
.mobile-class-card.row-bg--leave       { background-color: #fef3c7 !important; }

.classes-table tbody tr.row-bg--reschedule,
.mobile-class-card.row-bg--reschedule  { background-color: #dbeafe !important; }

.classes-table tbody tr.row-bg--advanced,
.mobile-class-card.row-bg--advanced    { background-color: #f4f4f5 !important; }

.classes-table tbody tr.row-bg--started,
.mobile-class-card.row-bg--started     { background-color: #e0f2fe !important; }

.classes-table tbody tr.row-bg--ended,
.mobile-class-card.row-bg--ended       { background-color: #fef9c3 !important; }

.classes-table tbody tr.row-bg--approval,
.mobile-class-card.row-bg--approval    { background-color: #f1f5f9 !important; }

/* Row status left-border indicator */
.classes-table tbody tr.row-status--taken { border-left: 3px solid #16a34a; }
.classes-table tbody tr.row-status--absent { border-left: 3px solid #dc2626; }
.classes-table tbody tr.row-status--leave { border-left: 3px solid #d97706; }
.classes-table tbody tr.row-status--running { border-left: 3px solid #2563eb; }
.classes-table tbody tr.row-status--ended { border-left: 3px solid #d97706; }
.classes-table tbody tr.row-status--approval { border-left: 3px solid #7c3aed; }

/* Action dropdown button */
.action-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.action-dropdown-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
}

.empty-state__icon {
    font-size: 40px;
    opacity: 0.5;
}

.empty-state__text {
    font-size: 14px;
    margin: 0;
}

/* Loading spinner */
.classes-loading {
    display: flex;
    justify-content: center;
    padding: 24px;
}

/* --- Mobile Card View --- */
.classes-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.mobile-class-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px;
    transition: box-shadow 0.2s;
}

.mobile-class-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Mobile card status indicator — left border */
.mobile-class-card.row-status--taken { border-left: 3px solid #16a34a; }
.mobile-class-card.row-status--absent { border-left: 3px solid #dc2626; }
.mobile-class-card.row-status--leave { border-left: 3px solid #d97706; }
.mobile-class-card.row-status--running { border-left: 3px solid #2563eb; }
.mobile-class-card.row-status--ended { border-left: 3px solid #d97706; }
.mobile-class-card.row-status--approval { border-left: 3px solid #7c3aed; }

.mobile-class-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-class-card__student {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.mobile-class-card__student .fw-600 {
    font-weight: 600;
}

.mobile-class-card__teacher {
    font-size: 12px;
    color: #64748b;
}

.mobile-class-card__teacher a {
    color: #64748b;
    text-decoration: none;
}

.mobile-class-card__teacher a:hover {
    color: #885c2d;
}

.mobile-class-card__times {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.mobile-time-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.mobile-time-chip__label {
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-time-chip__value {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.mobile-class-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-class-card__status {
    flex: 1;
    min-width: 0;
}

.mobile-class-card__actions {
    flex-shrink: 0;
}

/* Modern Modal Override */
.modern-modal {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modern-modal .modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 20px;
}

.modern-modal .modal-body {
    padding: 20px;
}

.modern-modal .modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 12px 20px;
}

/* ---- Responsive Adjustments ---- */

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stat-card {
        padding: 12px;
        gap: 10px;
    }
    .stat-card__icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .stat-card__value {
        font-size: 18px;
    }
    .stat-card__label {
        font-size: 11px;
    }

    .filter-card__body {
        padding: 12px 16px;
    }
    .filter-field {
        min-width: 100%;
    }
    .filter-field--actions {
        min-width: 100%;
        justify-content: flex-start;
    }

    .classes-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .mobile-class-card__times {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-class-card__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}


/* ============================================================
   DATA FORM PAGE — MODERN UI
   ============================================================ */

.dataform-page {
    padding: 24px 0 40px;
}

/* --- Page Header --- */
.dataform-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dataform-header__left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dataform-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.dataform-header__subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.dataform-header__archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #885c2d;
    background: #fdf4ea;
    border: 1px solid #e8d5c0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.dataform-header__archive-btn:hover {
    background: #f5e6d4;
    color: #6e4a23;
    border-color: #d4b896;
}

/* --- Empty State --- */
.dataform-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.dataform-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.dataform-empty__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px;
}

.dataform-empty__text {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* --- Tab Navigation --- */
.dataform-tabs {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.dataform-tabs__nav.nav-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
}

.dataform-tabs__nav.nav-tabs .nav-link.dataform-tabs__btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
    margin: 0;
}

.dataform-tabs__nav.nav-tabs .nav-link.dataform-tabs__btn i {
    font-size: 15px;
}

.dataform-tabs__nav.nav-tabs .nav-link.dataform-tabs__btn:hover {
    color: #334155;
    background: rgba(0,0,0,0.02);
    border-color: transparent;
    border-bottom-color: #cbd5e1;
}

.dataform-tabs__nav.nav-tabs .nav-link.dataform-tabs__btn:focus {
    box-shadow: none;
}

.dataform-tabs__nav.nav-tabs .nav-link.dataform-tabs__btn.active {
    color: #885c2d;
    border-color: transparent;
    border-bottom-color: #885c2d;
    background: #fff;
}

.dataform-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #ef4444;
    border-radius: 10px;
    line-height: 1;
}

/* --- Tab Content --- */
.dataform-tabs__content {
    padding: 0;
}

.dataform-table-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 24px;
    font-size: 14px;
    color: #94a3b8;
}

.dataform-table-empty i {
    font-size: 18px;
}

/* --- Desktop Table --- */
.dataform-table-wrap {
    overflow-x: auto;
}

.dataform-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dataform-table thead th {
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
}

.dataform-table tbody td {
    padding: 12px 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    text-align: left;
}

.dataform-table tbody tr:hover {
    background: #f8fafc;
}

.dataform-table tbody tr:last-child td {
    border-bottom: none;
}

/* Unread row highlight */
.dataform-table__row--unread {
    background: #fffbf0;
}

.dataform-table__row--unread:hover {
    background: #fff7e6 !important;
}

.dataform-table__row--unread td:first-child {
    box-shadow: inset 3px 0 0 #f59e0b;
}

/* Date cell */
.dataform-table__date {
    white-space: nowrap;
    line-height: 1.3;
}

.dataform-table__date small {
    color: #94a3b8;
    font-size: 11px;
}

/* Links */
.dataform-table__link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.dataform-table__link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Message column */
.dataform-table__message {
    max-width: 200px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

/* Tags (source, course) */
.dataform-table__tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border-radius: 6px;
    white-space: nowrap;
}

.dataform-table__tag--course {
    background: #dbeafe;
    color: #1e40af;
}

/* --- Action Buttons --- */
.dataform-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dataform-actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.dataform-actions__btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.dataform-actions__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
}

.dataform-actions__btn--read:hover:not(:disabled) {
    color: #3b82f6;
    border-color: #93c5fd;
    background: #eff6ff;
}

.dataform-actions__btn--archive:hover:not(:disabled) {
    color: #f59e0b;
    border-color: #fcd34d;
    background: #fffbeb;
}

.dataform-actions__btn--delete:hover:not(:disabled) {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* --- Mobile Cards --- */
.dataform-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 8px 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.dataform-card:first-child {
    margin-top: 12px;
}

.dataform-card:last-child {
    margin-bottom: 12px;
}

.dataform-card--unread {
    border-left: 3px solid #f59e0b;
    background: #fffbf0;
}

.dataform-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 0;
}

.dataform-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.dataform-card__date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.dataform-card__body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dataform-card__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.dataform-card__row i {
    font-size: 13px;
    color: #94a3b8;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.dataform-card__row a {
    color: #3b82f6;
    text-decoration: none;
}

.dataform-card__message {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    padding: 6px 0 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

.dataform-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.dataform-card__footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .dataform-page {
        padding: 16px 0 32px;
    }

    .dataform-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .dataform-header__archive-btn {
        align-self: flex-start;
    }

    .dataform-tabs {
        border-radius: 10px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .dataform-tabs__btn {
        padding: 12px 14px;
        font-size: 12px;
    }

    .dataform-tabs__btn span {
        display: none;
    }

    .dataform-tabs__btn i {
        font-size: 17px;
    }

    .dataform-card {
        margin: 6px 8px;
        border-radius: 8px;
    }
}
