/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* Design Tokens & Variables */
:root {
    --font-main: 'Cairo', sans-serif;
    --font-nums: 'Inter', 'Cairo', sans-serif;

    /* Colors */
    --bg-app: #F0F4F8;
    --bg-card: #FFFFFF;
    --border-card: rgba(13, 45, 94, 0.08);

    --primary-dark: #162044;
    --primary-muted: #8AAACF;
    --primary-light: #F0F4F8;

    /* Brand Colors */
    --brand-green-light: #6DC424;
    --brand-green-dark: #4A8F1A;
    --brand-green-gradient: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    --sidebar-gradient: linear-gradient(180deg, #0C1A3E 0%, #142050 50%, #0D1A3A 100%);

    /* Accent Colors */
    --blue: #155DFC;
    --blue-light: #EFF6FF;

    --green: #009966;
    --green-light: #ECFDF5;

    --teal: #009689;
    --teal-light: #F0FDFA;

    --purple: #7F22FE;
    --purple-light: #F5F3FF;

    --amber: #FE9A00;
    --amber-light: #FFFBEB;
    --amber-text: #BB4D00;

    --red: #E05252;
    --red-bright: #FB2C36;
    --red-light: #FEF2F2;
    --red-text: #E7000B;

    --cyan: #0092B8;
    --cyan-light: #ECFEFF;

    --sidebar-text-muted: #90A1B9;

    /* Typography Scale */
    --fs-xs: 11.25px;
    --fs-sm: 13.125px;
    --fs-md: 15px;
    --fs-lg: 18.75px;
    --fs-xl: 22.5px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-app);
    color: var(--primary-dark);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    min-height: 100vh;
}

/* App Container Layout */
.app-container,
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Sidebar Styling */
.sidebar {
    width: 235px;
    background: var(--sidebar-gradient);
    box-shadow: 4px 0px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

/* Sidebar Logo / Center Profile */
.sidebar-header {
    padding: 24px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.logo-container {
    width: 55px;
    height: 55px;
    background: #FFFFFF;
    box-shadow: 0px 0px 0px 3px rgba(109, 196, 36, 0.45), 0px 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.logo-container:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.center-info {
    text-align: center;
}

.center-name {
    font-size: var(--fs-sm);
    font-weight: 900;
    color: var(--brand-green-light);
    line-height: 19px;
    letter-spacing: 0.13px;
    margin-bottom: 2px;
}

.center-tag {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: rgba(109, 196, 36, 0.55);
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex-grow: 1;
    padding: 15px 7.5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

/* Scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 15px;
    width: 100%;
    border-radius: 15px;
    text-decoration: none;
    color: var(--sidebar-text-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--sidebar-text-muted);
    fill: none;
    stroke-width: 1.5;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.04);
}

.nav-item:hover svg {
    stroke: #FFFFFF;
    transform: translateX(-2px);
}

.nav-item.active {
    background: rgba(109, 196, 36, 0.18);
    box-shadow: inset -3px 0px 0px var(--brand-green-light);
    /* Since RTL, inset border on right side */
    color: #FFFFFF;
    border-radius: 15px;
}

.nav-item.active svg {
    stroke: var(--brand-green-light);
}

/* Sidebar Footer User Profile */
.sidebar-footer {
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.user-profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-align: right;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.user-profile-btn.active {
    background: rgba(109, 196, 36, 0.15);
    box-shadow: inset -3px 0px 0px var(--brand-green-light);
}

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-green-gradient);
    box-shadow: 0px 2px 6px rgba(109, 196, 36, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 900;
    font-size: var(--fs-sm);
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.user-name {
    color: #FFFFFF;
    font-weight: 700;
    font-size: var(--fs-sm);
    line-height: 19px;
}

.user-role {
    color: #7A90B8;
    font-weight: 600;
    font-size: var(--fs-xs);
    line-height: 15px;
}

.logout-icon {
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.user-profile-btn:hover .logout-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevents flex children from breaking parent layout */
}

/* Header Styling */
.header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 11.25px 18.75px;
    width: 100%;
    height: 65.02px;
    background: #FFFFFF;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.1);
    position: sticky;
    top: 0;
    z-index: 90;
}

/* Header Right Side: Breadcrumbs and Mobile Menu */
.header-right-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11.25px;
    height: 34px;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 17.98px;
    height: 17.98px;
    justify-content: center;
    align-items: center;
}

.hamburger-btn svg {
    width: 17.98px;
    height: 17.98px;
    stroke: #90A1B9;
    stroke-width: 1.49873px;
    fill: none;
}

.page-title-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-title {
    font-size: 13.125px;
    font-weight: 700;
    color: #162044;
    line-height: 19px;
}

.breadcrumbs {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 3.75px;
    height: 15px;
    margin-top: 1px;
}

.breadcrumbs span {
    font-size: 11.25px;
    font-weight: 400;
    color: #8AAACF;
    line-height: 15px;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10.99px;
    height: 10.99px;
}

/* Header Left Side: Actions and User Widget */
.header-left-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9.38px;
    height: 41.25px;
}

/* Search Bar */
.search-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 5.625px 11.25px;
    gap: 7.5px;
    width: 177.98px;
    height: 26.25px;
    background: #F0F4F8;
    border-radius: 11.25px;
    transition: width var(--transition-normal), box-shadow var(--transition-fast), border-color var(--transition-fast);
    border: 1px solid transparent;
}

.search-container:focus-within {
    width: 220px;
    box-shadow: 0px 0px 0px 2px rgba(109, 196, 36, 0.2);
    background: #FFFFFF;
    border-color: rgba(109, 196, 36, 0.5);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 11.25px;
    color: #162044;
    width: 135px;
    height: 21px;
    line-height: 21px;
    text-align: right;
    font-family: var(--font-main);
}

.search-input::placeholder {
    color: rgba(22, 32, 68, 0.5);
}

.search-icon {
    width: 12.99px;
    height: 12.99px;
    flex-shrink: 0;
}

/* Notification Button and Popover */
.notification-bell-wrapper {
    position: relative;
    width: 31.97px;
    height: 31.97px;
}

.notification-btn {
    width: 31.97px;
    height: 31.97px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.notification-btn:hover {
    background: #F0F4F8;
}

.notification-icon {
    width: 16.99px;
    height: 16.99px;
}

.notification-badge {
    position: absolute;
    width: 7.49px;
    height: 7.49px;
    left: 5.62px;
    top: 5.62px;
    background: #E05252;
    border-radius: 50%;
}

/* Floating Dropdown */
.notifications-dropdown {
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    position: absolute;
    width: 269.99px;
    height: 211.85px;
    top: calc(100% + 8px);
    left: 0;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.1);
    box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 15.25px;
    z-index: 1000;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

.notifications-dropdown.active {
    display: flex;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 11.25px 15px;
    width: 100%;
    height: 42.52px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.dropdown-title {
    font-size: 13.125px;
    font-weight: 700;
    color: #162044;
    line-height: 19px;
}

.dropdown-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21.29px;
    height: 18.74px;
    background: #E05252;
    border-radius: 50%;
    font-size: 11.25px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 15px;
}

.dropdown-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-y: auto;
    flex-grow: 1;
}

.dropdown-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 11.25px 15px;
    width: 100%;
    height: 55.64px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
    cursor: pointer;
    transition: background var(--transition-fast), opacity 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #F4F7FB;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.dropdown-item-title {
    font-size: 11.25px;
    font-weight: 400;
    color: #162044;
    line-height: 15px;
    text-align: right;
}

.dropdown-item-time {
    font-size: 11.25px;
    font-weight: 400;
    color: #8AAACF;
    line-height: 15px;
    margin-top: 2px;
}

.dropdown-item-icon {
    width: 12.99px;
    height: 12.99px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
    /* margin for gap spacing */
}

.dropdown-item-icon svg {
    width: 12.99px;
    height: 12.99px;
    fill: none;
    stroke-width: 1.5;
}

/* Dropdown Warning Icon Color */
.dropdown-item.warning .dropdown-item-icon svg {
    stroke: #FE9A00;
}

/* Dropdown Danger Icon Color */
.dropdown-item.danger .dropdown-item-icon svg {
    stroke: #FB2C36;
}

/* Dropdown Success Icon Color */
.dropdown-item.success .dropdown-item-icon svg {
    stroke: #00BC7D;
}

/* User Profile Header Dropdown */
.user-profile-wrapper {
    position: relative;
    height: 41.25px;
}

.user-profile-header-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5.625px 7.5px;
    gap: 9.38px;
    width: 127.48px;
    height: 41.25px;
    border-radius: 15.25px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-profile-header-btn:hover {
    background: #F0F4F8;
}

.user-profile-header-btn.active {
    background: #EAF3E4;
    box-shadow: 0 0 0 1.5px rgba(109, 196, 36, 0.35);
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 51.74px;
    height: 30px;
    justify-content: center;
}

.profile-name {
    font-size: 11.25px;
    font-weight: 700;
    color: #162044;
    line-height: 15px;
    text-align: right;
    white-space: nowrap;
}

.profile-role {
    font-size: 11.25px;
    font-weight: 600;
    color: #8AAACF;
    line-height: 15px;
    text-align: right;
    white-space: nowrap;
}

.profile-avatar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    width: 29.99px;
    height: 29.99px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 2px 6px rgba(109, 196, 36, 0.4);
    border-radius: 50%;
    font-size: 13.125px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 19px;
    flex-shrink: 0;
}

.profile-arrow {
    width: 11.99px;
    height: 11.99px;
    stroke: #8AAACF;
    stroke-width: 1.5;
    fill: none;
    transition: transform var(--transition-normal);
}

/* User Profile Header Dropdown */
.profile-dropdown {
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    position: absolute;
    width: 180px;
    top: calc(100% + 8px);
    left: 0;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.1);
    box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 15.25px;
    z-index: 1000;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

.user-profile-wrapper.active .profile-dropdown {
    display: flex;
}

.profile-dropdown .dropdown-item {
    height: 48px;
    text-decoration: none;
}

.profile-dropdown .dropdown-item-title {
    font-weight: 600;
    font-size: 12.5px;
}

.profile-dropdown .dropdown-item-icon svg {
    width: 16px;
    height: 16px;
    stroke: #4A5DAA;
}

.profile-dropdown .dropdown-item.danger .dropdown-item-icon svg {
    stroke: #E05252;
}

.profile-dropdown .dropdown-item.danger .dropdown-item-title {
    color: #E05252;
}

.user-profile-wrapper.active .profile-arrow {
    transform: rotate(180deg);
}

.user-profile-wrapper.active .user-profile-header-btn {
    background: #F0F4F8;
}

/* Dashboard Content Grid */
.dashboard-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1.25px solid var(--border-card);
    border-radius: 15px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 146px;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(13, 45, 94, 0.05);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.stat-card-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific colors for Stat Card Icons */
.stat-card.students .stat-card-icon-wrapper {
    background: var(--blue-light);
    color: var(--blue);
}

.stat-card.teachers .stat-card-icon-wrapper {
    background: var(--green-light);
    color: var(--green);
}

.stat-card.programs .stat-card-icon-wrapper {
    background: var(--green-light);
    color: var(--green);
}

/* wait, the active programs had #ECFDF5 and green */
.stat-card.rooms .stat-card-icon-wrapper {
    background: var(--purple-light);
    color: var(--purple);
}

.stat-card.rev-day .stat-card-icon-wrapper {
    background: var(--teal-light);
    color: var(--teal);
}

.stat-card.rev-month .stat-card-icon-wrapper {
    background: var(--blue-light);
    color: #4F39F6;
}

/* wait, EEF2FF background and 4F39F6 border/color */
.stat-card.installments .stat-card-icon-wrapper {
    background: var(--red-light);
    color: var(--red-bright);
}

.stat-card.attendance .stat-card-icon-wrapper {
    background: var(--cyan-light);
    color: var(--cyan);
}

.stat-card-icon-wrapper svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

/* Green trends */
.stat-card.students .stat-card-trend,
.stat-card.teachers .stat-card-trend,
.stat-card.programs .stat-card-trend,
.stat-card.rooms .stat-card-trend,
.stat-card.rev-day .stat-card-trend,
.stat-card.rev-month .stat-card-trend,
.stat-card.attendance .stat-card-trend {
    color: var(--green);
}

/* Red trends */
.stat-card.installments .stat-card-trend {
    color: var(--red-bright);
}

.trend-icon {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.stat-card-body {
    margin-top: 12px;
}

.stat-card-value {
    font-family: var(--font-nums);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 30px;
}

.stat-card-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 15px;
    margin-top: 2px;
}

.stat-card-footer {
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--primary-muted);
    line-height: 15px;
    margin-top: 4px;
}

/* Middle Rows: Charts & Secondary Widgets */
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Standard Card Panel Styling */
.panel-card {
    background: var(--bg-card);
    border: 1.25px solid var(--border-card);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.panel-card:hover {
    box-shadow: 0 8px 24px rgba(13, 45, 94, 0.03);
}

.panel-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.25px solid var(--border-card);
}

.panel-title-area {
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 19px;
}

.panel-subtitle {
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--primary-muted);
    line-height: 15px;
    margin-top: 2px;
}

.panel-body {
    padding: 20px;
    flex-grow: 1;
    position: relative;
}

/* Specific component layouts */
/* Pie Chart Legend List */
.pie-legend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: var(--fs-xs);
}

.legend-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 9.36px;
    height: 9.36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    color: #5A6E8C;
    font-weight: 400;
}

.legend-value {
    font-family: var(--font-nums);
    font-weight: 600;
    color: var(--primary-dark);
}

/* Latest Students Table styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.custom-table th {
    background: #F4F7FB;
    padding: 10px 16px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: #5A6E8C;
    border: none;
}

.custom-table th:first-child {
    border-radius: 0 8px 8px 0;
    /* RTL round right corner first */
}

.custom-table th:last-child {
    border-radius: 8px 0 0 8px;
    /* RTL round left corner last */
}

.custom-table td {
    padding: 12px 16px;
    font-size: var(--fs-xs);
    color: #5A6E8C;
    border-bottom: 1.25px solid rgba(13, 45, 94, 0.06);
    vertical-align: middle;
}

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

/* Student Avatar Cell */
.student-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1E3070;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--fs-xs);
    flex-shrink: 0;
}

.student-info {
    display: flex;
    flex-direction: column;
}

.student-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: var(--fs-xs);
    line-height: 15px;
}

.student-id {
    font-family: var(--font-nums);
    font-size: var(--fs-xs);
    color: var(--primary-muted);
    line-height: 15px;
    margin-top: 2px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 15px;
}

.badge.active {
    background: var(--green-light);
    color: #007A55;
}

.badge.suspended {
    background: var(--red-light);
    color: #E7000B;
}

.badge.paid {
    background: var(--blue-light);
    color: #1447E6;
}

.badge.partial {
    background: var(--amber-light);
    color: var(--amber-text);
}

/* Alerts Widget Styling */
.alerts-list {
    display: flex;
    flex-direction: column;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(13, 45, 94, 0.06);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.alert-item:hover {
    background: var(--bg-app);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-icon-wrapper {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.alert-icon-wrapper svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
    fill: none;
}

.alert-item.warning .alert-icon-wrapper svg {
    stroke: var(--amber);
}

.alert-item.danger .alert-icon-wrapper svg {
    stroke: var(--red-bright);
}

.alert-item.success .alert-icon-wrapper svg {
    stroke: #00BC7D;
}

.alert-item.info .alert-icon-wrapper svg {
    stroke: var(--blue);
}

.alert-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.alert-text {
    font-size: var(--fs-xs);
    color: var(--primary-dark);
    font-weight: 400;
    line-height: 15px;
}

.alert-time {
    font-size: var(--fs-xs);
    color: var(--primary-muted);
    margin-top: 2px;
    line-height: 15px;
}

/* Alert Count Badge in Header */
.alert-count-badge {
    background: var(--red);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    width: 17.5px;
    height: 18.7px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-nums);
    line-height: 1;
}

/* Buttons */
.btn-text-primary {
    background: transparent;
    border: none;
    color: var(--blue);
    font-weight: 600;
    font-size: var(--fs-xs);
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.btn-text-primary:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Modal Styling for Adding Student (Quick Interaction) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 26, 62, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.2);
    padding: 24px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(13, 45, 94, 0.1);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--primary-dark);
}

.modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-muted);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.25px solid rgba(13, 45, 94, 0.15);
    font-size: var(--fs-xs);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--brand-green-light);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary {
    background: var(--bg-app);
    border: none;
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: #E2E8F0;
}

.btn-primary {
    background: var(--brand-green-gradient);
    border: none;
    color: #FFFFFF;
    box-shadow: 0px 4px 12px rgba(109, 196, 36, 0.3);
}

.btn-primary:hover {
    box-shadow: 0px 6px 16px rgba(109, 196, 36, 0.4);
    transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        right: -270px;
        /* Hidden in RTL by default */
        top: 0;
        bottom: 0;
        width: 270px;
    }

    .sidebar.active {
        transform: translateX(-270px);
        /* Show in RTL */
    }

    .hamburger-btn {
        display: block;
    }

    .page-title-area {
        display: none;
        /* Hide page title breadcrumbs on small screens to save space */
    }

    .search-container {
        width: 120px;
    }

    .search-container:focus-within {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 0 12px;
    }

    .dashboard-content {
        padding: 12px;
    }
}

/* ==========================================
   Students Management Page Styles
   ========================================== */
.students-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    width: 100%;
    max-width: 1170.37px;
    margin: 0 auto;
    gap: 18.75px;
}

.students-page-header {
    direction: ltr;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 43.88px;
}

.students-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* RTL: align title right */
    text-align: right;
}

.students-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.students-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin-top: 1px;
}

.students-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
}

.btn-add-student {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    height: 37.75px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-add-student:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 20px rgba(109, 196, 36, 0.5);
}

.btn-add {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    height: 37.75px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 20px rgba(109, 196, 36, 0.5);
}


.plus-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
    flex-shrink: 0;
}

.plus-icon-container svg {
    width: 11.99px;
    height: 11.99px;
    stroke: #FFFFFF;
    stroke-width: 1.49872px;
}

.btn-export-excel {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 9.375px 13.125px;
    gap: 5.62px;
    height: 36.3px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.22);
    box-shadow: 0px 2px 8px rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    cursor: pointer;
    color: #1E3070;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-export-excel:hover {
    background: #F4F7FB;
    box-shadow: 0px 4px 12px rgba(13, 45, 94, 0.12);
}

.excel-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12.99px;
    height: 12.99px;
    flex-shrink: 0;
}

.excel-icon-container svg {
    width: 12.99px;
    height: 12.99px;
    stroke: #1E3070;
    stroke-width: 1.08214px;
    fill: none;
}

/* Stats mini grid */
.students-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 11.25px;
    width: 100%;
}

.stat-mini-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 11.25px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    height: 68.12px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 16px rgba(13, 45, 94, 0.05);
}

.stat-mini-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 18.75px;
    line-height: 26px;
    text-align: center;
    margin: 0;
}

.stat-mini-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
    color: #8AAACF;
    margin-top: 1px;
}

/* Specific Value Colors */
.stat-total {
    color: #4A5DAA;
}

.stat-active {
    color: #22863A;
}

.stat-suspended {
    color: #E05252;
}

.stat-secondary {
    color: #9333EA;
}

.stat-intermediate {
    color: #6DC424;
}

.stat-late {
    color: #E05252;
}

/* Table Card styling */
.students-table-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: 100%;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    overflow: hidden;
}

.students-table-header-control {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18.75px;
    width: 100%;
    height: 64.99px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.table-search-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 7.5px 11.25px;
    gap: 7.5px;
    width: 320px;
    height: 33.74px;
    background: #F0F4F8;
    border-radius: 11.25px;
    border: 1px solid transparent;
    transition: width var(--transition-normal), border-color var(--transition-fast), background var(--transition-fast);
}

.table-search-container:focus-within {
    width: 400px;
    background: #FFFFFF;
    border-color: rgba(109, 196, 36, 0.5);
    box-shadow: 0px 0px 0px 2px rgba(109, 196, 36, 0.2);
}

.table-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Cairo', sans-serif;
    font-size: 13.125px;
    line-height: 25px;
    color: #162044;
    width: 100%;
    text-align: right;
}

.table-search-input::placeholder {
    color: rgba(22, 32, 68, 0.5);
}

.table-search-icon {
    width: 13.98px;
    height: 13.98px;
    flex-shrink: 0;
}

.table-search-icon svg {
    width: 13.98px;
    height: 13.98px;
    stroke: #8AAACF;
    stroke-width: 1.16513;
    fill: none;
}

.filter-tabs {
    display: flex;
    flex-direction: row;
    gap: 7.5px;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5.625px 11.25px;
    height: 26.25px;
    border-radius: 11.25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #62748E;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.filter-btn.active {
    background: #6DC424;
    color: #FFFFFF;
}

.filter-btn:hover:not(.active) {
    background: #F0F4F8;
    color: #162044;
}

.students-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
}

.students-table th {
    background: #F4F7FB;
    padding: 10.41px 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    text-align: right;
    white-space: nowrap;
}

.students-table td {
    padding: 11.87px 15px;
    border-top: 1.27467px solid rgba(13, 45, 94, 0.06);
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    vertical-align: middle;
    white-space: nowrap;
}

.students-table tbody tr {
    transition: background var(--transition-fast);
}

.students-table tbody tr:hover {
    background: #F9FBFE;
}

/* Student Avatar Cell */
.student-avatar-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9.38px;
}

.student-avatar-wrapper-small {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 29.99px;
    height: 29.99px;
    background: #1E3070;
    border-radius: 50%;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.student-text-info-small {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.student-name-text-small {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
}

.student-id-text-small {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin-top: 1px;
}

.national-id-text {
    font-family: 'Consolas', monospace;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
}

.student-fees-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
}

.remaining-fees-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
}

.remaining-fees-text.paid {
    color: #009966;
}

.remaining-fees-text.due {
    color: #FB2C36;
}

.student-status-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
}

.student-status-badge.active {
    background: #ECFDF5;
    color: #007A55;
}

.student-status-badge.suspended {
    background: #FEF2F2;
    color: #E7000B;
}

/* Action Buttons in Cell */
.student-actions-cell {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 3.75px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.student-actions-cell:hover {
    opacity: 1;
}

.btn-action-small {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.12);
    box-shadow: 0px 1px 4px rgba(13, 45, 94, 0.08);
    border-radius: 11.25px;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-action-small:hover {
    background: #F4F7FB;
    border-color: rgba(13, 45, 94, 0.25);
}

.btn-action-small svg {
    width: 12px;
    height: 12px;
    stroke: #5A6E8C;
    stroke-width: 1.5px;
    fill: none;
}

.btn-action-small.dots svg {
    fill: #5A6E8C;
    stroke: none;
}

/* Responsive adjust for stats-row */
@media (max-width: 992px) {
    .students-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .students-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .students-page-header {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        gap: 12px;
    }

    .students-header-title-container {
        align-items: flex-start;
    }

    .students-table-header-control {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 12px;
        align-items: stretch;
    }

    .table-search-container {
        width: 100% !important;
    }
}

/* ==========================================
   Add Student Side Drawer Styles
   ========================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 26, 62, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel {
    position: fixed;
    top: 0;
    left: -420px;
    bottom: 0;
    width: 419.98px;
    max-width: 420px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    /* Ensure RTL flow */
}

.drawer-overlay.active .drawer-panel {
    left: 0;
}

/* Drawer Header */
.drawer-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18.75px 22.5px;
    width: 100%;
    height: 78.65px;
    background: linear-gradient(135deg, #4A8F1A 0%, #6DC424 100%);
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.1);
}

.drawer-title-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.drawer-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    color: #FFFFFF;
    margin: 0;
}

.drawer-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    margin-top: 2px;
}

.drawer-close {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    width: 29.99px;
    height: 29.99px;
    border-radius: 11.25px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.33276px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: #FFFFFF;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
}

.drawer-close svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2px;
}

/* Drawer Form and Scrollable Container */
.drawer-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: calc(100% - 78.65px);
}

.drawer-scroll-container {
    display: flex;
    flex-direction: column;
    padding: 22.5px;
    flex-grow: 1;
    overflow-y: auto;
    gap: 15px;
}

/* Custom Scrollbar for Drawer Content */
.drawer-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.drawer-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(13, 45, 94, 0.12);
    border-radius: 3px;
}

.drawer-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 45, 94, 0.22);
}

/* Layout Helpers */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11.25px;
    width: 100%;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7.5px;
    width: 100%;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Right align labels & inputs in RTL */
    width: 100%;
}

.form-group-custom label {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    margin-bottom: 5.625px;
    text-align: right;
    width: 100%;
}

.form-control-custom {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 9.375px 11.25px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 15.25px;
    font-family: 'Cairo', sans-serif;
    font-size: 13.125px;
    line-height: 25px;
    color: #162044;
    outline: none;
    text-align: right;
    background: #FFFFFF;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control-custom::placeholder {
    color: rgba(22, 32, 68, 0.5);
}

.form-control-custom:focus {
    border-color: rgba(109, 196, 36, 0.5);
    box-shadow: 0 0 0 3px rgba(109, 196, 36, 0.15);
}

select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6E8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 14px;
    padding-left: 30px;
}

/* Fees and Payment Section */
.fees-payment-section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 7.5px 11.25px 11.25px;
    width: 100%;
    background: #F0F4FB;
    border-radius: 15.25px;
    margin-top: 5px;
}

.fees-payment-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    text-align: right;
    width: 100%;
    margin-bottom: 2px;
}

/* Drawer Footer Actions */
.drawer-footer {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22.5px;
    gap: 11.25px;
    width: 100%;
    height: 71.57px;
    border-top: 1.27467px solid rgba(13, 45, 94, 0.08);
    background: #FFFFFF;
}

.btn-drawer-cancel {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 9.375px 18.75px;
    width: 68.05px;
    height: 40.3px;
    border: 1.27467px solid rgba(13, 45, 94, 0.2);
    border-radius: 15.25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13.125px;
    line-height: 19px;
    text-align: center;
    color: #5A6E8C;
    background: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-drawer-cancel:hover {
    background: #F0F4F8;
    border-color: rgba(13, 45, 94, 0.3);
}

.btn-drawer-save {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 9.375px 0px;
    width: 295.68px;
    height: 37.75px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 14px rgba(109, 196, 36, 0.3);
    border-radius: 15.25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    text-align: center;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-drawer-save:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 18px rgba(109, 196, 36, 0.4);
}

/* Responsiveness for small screens */
@media (max-width: 480px) {
    .drawer-panel {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================
   Parents Page Styles
   ========================================== */
.parents-content {
    padding: 18.75px;
    display: flex;
    flex-direction: column;
    gap: 18.75px;
    width: 100%;
    box-sizing: border-box;
    background: #F0F4F8;
    min-height: calc(100vh - 65.02px);
}

.parents-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.parents-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align title & subtitle to right side */
    text-align: right;
}

.parents-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.parents-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
    margin-top: 2px;
}

.btn-add-parent {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    width: 147.62px;
    height: 37.75px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-parent:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 20px rgba(109, 196, 36, 0.5);
}

.btn-add-parent .plus-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
}

.btn-add-parent .plus-icon-circle svg {
    width: 11.99px;
    height: 11.99px;
    stroke: #FFFFFF;
    stroke-width: 2px;
}

/* Stats Cards Grid */
.parents-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.parent-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    height: 81.28px;
    position: relative;
}

.parent-stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 22.5px;
    line-height: 30px;
    margin: 0;
    text-align: right;
    width: 100%;
}

.parent-stat-value.total {
    color: #4A5DAA;
}

.parent-stat-value.linked {
    color: #22863A;
}

.parent-stat-value.late {
    color: #E05252;
}

.parent-stat-value.contacted {
    color: #6DC424;
}

.parent-stat-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    text-align: right;
    width: 100%;
    margin-top: 4px;
}

/* Split Layout */
.parents-grid {
    display: grid;
    grid-template-columns: 70% 2fr;
    gap: 18.75px;
    width: 100%;
    align-items: start;
}

/* Table Card */
.parents-table-card {
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.parents-table-header-control {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 18.75px;
    gap: 11.25px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.parents-search-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 7.5px 11.25px;
    gap: 7.5px;
    width: 100%;
    height: 33.74px;
    background: #F0F4F8;
    border-radius: 11.25px;
}

.parents-search-input {
    border: none;
    background: transparent;
    width: 100%;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    font-size: 13.125px;
    color: #162044;
    outline: none;
}

.parents-search-input::placeholder {
    color: rgba(22, 32, 68, 0.5);
}

.parents-search-icon {
    width: 13.98px;
    height: 13.98px;
    stroke: #8AAACF;
    stroke-width: 1.5px;
    fill: none;
}

.parents-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.parents-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.parents-table th {
    background: #F4F7FB;
    padding: 10px 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    border-bottom: 1px solid rgba(13, 45, 94, 0.06);
}

.parents-table td {
    padding: 12px 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    border-bottom: 1px solid rgba(13, 45, 94, 0.06);
    vertical-align: middle;
}

.parents-table tr:hover {
    background-color: #F8FAFC;
}

.parents-table .parent-name-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9.38px;
}

.parents-table .parent-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 29.99px;
    height: 29.99px;
    background: #6DC424;
    border-radius: 50%;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 11.25px;
}

.parents-table .parent-text-info {
    display: flex;
    flex-direction: column;
}

.parents-table .parent-name-txt {
    font-weight: 600;
    color: #162044;
}

.parents-table .parent-id-txt {
    color: #8AAACF;
    margin-top: 1px;
}

.parents-table .phone-text {
    font-family: 'Consolas', monospace;
    font-size: 11.25px;
}

.parents-table .payment-txt {
    font-weight: 600;
    color: #162044;
}

/* Sidebar Card */
.parents-sidebar-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    gap: 15px;
}

.parents-sidebar-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
    text-align: right;
}

.parents-sidebar-stats-list {
    display: flex;
    flex-direction: column;
    gap: 11.25px;
}

.parents-sidebar-stat-item {
    display: flex;
    flex-direction: row-reverse;
    /* RTL justification */
    justify-content: space-between;
    align-items: center;
    padding: 9.375px 11.25px;
    background: #F4F7FB;
    border-radius: 11.25px;
    height: 37.49px;
}

.parents-sidebar-stat-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
}

.parents-sidebar-stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
}

.parents-sidebar-stat-value.blue {
    color: #4A5DAA;
}

.parents-sidebar-stat-value.red {
    color: #E05252;
}

.parents-sidebar-stat-value.dark-green {
    color: #22863A;
}

.parents-sidebar-stat-value.light-green {
    color: #6DC424;
}

.btn-sidebar-add-parent {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 9.375px 0px;
    width: 100%;
    height: 37.46px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 14px rgba(109, 196, 36, 0.25);
    border-radius: 15.25px;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 5px;
}

.btn-sidebar-add-parent:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 16px rgba(109, 196, 36, 0.35);
}

/* Specific button outline colors for Parents Table actions */
.btn-action-small.chat svg {
    stroke: #4A5DAA;
}

.btn-action-small.edit-green svg {
    stroke: #6DC424;
}

/* Responsive adjust for parents grid */
@media (max-width: 992px) {
    .parents-grid {
        grid-template-columns: 1fr;
    }

    .parents-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .parents-stats-row {
        grid-template-columns: 1fr;
    }

    .parents-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================
   Teachers Page Styles
   ========================================== */
.teachers-content {
    padding: 18.75px;
    display: flex;
    flex-direction: column;
    gap: 18.75px;
    width: 100%;
    box-sizing: border-box;
    background: #F0F4F8;
    min-height: calc(100vh - 65.02px);
}

.teachers-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.teachers-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.teachers-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.teachers-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
    margin-top: 2px;
}

.btn-add-teacher {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    width: 141.62px;
    height: 37.75px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-teacher:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 20px rgba(109, 196, 36, 0.5);
}

.btn-add-teacher .plus-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
}

.btn-add-teacher .plus-icon-circle svg {
    width: 11.99px;
    height: 11.99px;
    stroke: #FFFFFF;
    stroke-width: 2px;
}

/* Stats Cards Grid */
.teachers-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.teacher-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    height: 81.28px;
    position: relative;
}

.teacher-stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 22.5px;
    line-height: 30px;
    margin: 0;
    text-align: right;
    width: 100%;
}

.teacher-stat-value.total {
    color: #4A5DAA;
}

.teacher-stat-value.active {
    color: #22863A;
}

.teacher-stat-value.leave {
    color: #E05252;
}

.teacher-stat-value.subjects {
    color: #6DC424;
}

.teacher-stat-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    text-align: right;
    width: 100%;
    margin-top: 4px;
}

/* Salaries and Sessions block */
.salaries-sessions-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    width: 100%;
    height: 118.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    gap: 11.25px;
    position: relative;
}

.salaries-sessions-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
    text-align: right;
    width: 100%;
}

.salaries-sessions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11.25px;
    width: 100%;
}

.salary-session-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    padding: 11.25px;
    gap: 11.25px;
    background: #F0F4FB;
    border-radius: 11.25px;
    height: 56.5px;
    box-sizing: border-box;
}

.salary-session-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.salary-session-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #1E3070;
    margin: 0;
}

.salary-session-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

.salary-session-icon {
    font-family: 'Cairo', sans-serif;
    font-size: 18.75px;
    line-height: 26px;
    color: #162044;
}

/* Teachers Card List layout */
.teachers-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.teacher-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    width: 100%;
    position: relative;
    gap: 11.25px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.teacher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 24px rgba(13, 45, 94, 0.06);
    z-index: 20;
}

.teacher-card:has(.teacher-actions-dropdown.active) {
    z-index: 21;
}

.teacher-card-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.teacher-card-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11.25px;
}

.teacher-avatar-circle {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    width: 44.99px;
    height: 44.99px;
    background: #1E3070;
    border-radius: 15.25px;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
}

.teacher-name-badge-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.teacher-name-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9.38px;
}

.teacher-card-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    color: #162044;
    margin: 0;
}

.teacher-badge {
    padding: 1px 8px;
    border-radius: 9999px;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    line-height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.teacher-badge.status-active {
    background: #ECFDF5;
    color: #007A55;
    font-weight: 600;
}

.teacher-badge.status-leave {
    background: #FFFBEB;
    color: #BB4D00;
    font-weight: 600;
}

.teacher-badge.subject {
    background: #E8ECF8;
    color: #1E3070;
    font-weight: 400;
}

.teacher-card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
}

.btn-card-more {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    width: 29.99px;
    height: 29.99px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.18);
    box-shadow: 0px 2px 6px rgba(13, 45, 94, 0.1);
    border-radius: 11.25px;
    cursor: pointer;
    color: #5A6E8C;
    transition: var(--transition-fast);
}

.btn-card-more:hover {
    background: #F4F7FB;
    border-color: rgba(13, 45, 94, 0.25);
}

.btn-card-more svg {
    width: 12.99px;
    height: 12.99px;
}

.teacher-card-divider {
    height: 1px;
    background: rgba(13, 45, 94, 0.06);
    width: 100%;
    margin: 4px 0;
}

.teacher-card-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.teacher-card-meta-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18.75px;
}

.teacher-meta-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3.75px;
    color: #5A6E8C;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    line-height: 15px;
}

.teacher-meta-item svg {
    width: 10.99px;
    height: 10.99px;
    stroke: currentColor;
    stroke-width: 1.5px;
    fill: none;
}

.teacher-card-metrics {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22.5px;
}

.teacher-metric-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 42.1px;
}

.teacher-metric-value-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3.75px;
}

.teacher-metric-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 18.75px;
    line-height: 26px;
    text-align: center;
    color: #1E3070;
}

.teacher-metric-value.green {
    color: #6DC424;
}

.teacher-metric-value.star {
    color: #1E3070;
}

.teacher-metric-value.star svg {
    width: 12.99px;
    height: 12.99px;
    fill: #FFB900;
    stroke: #FFB900;
}

.teacher-metric-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
    color: #8AAACF;
}

/* Actions Menu Dropdown inside Teacher Card */
.teacher-actions-dropdown {
    position: absolute;
    top: 40px;
    left: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    box-shadow: 0px 10px 25px rgba(13, 45, 94, 0.08);
    border-radius: 11.25px;
    z-index: 10;
    display: none;
    flex-direction: column;
    padding: 5px;
    min-width: 120px;
}

.teacher-actions-dropdown.active {
    display: flex;
}

.teacher-dropdown-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    padding: 7.5px 10px;
    gap: 7.5px;
    background: transparent;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    color: #5A6E8C;
    cursor: pointer;
    border-radius: 7.5px;
    width: 100%;
    text-align: right;
    transition: var(--transition-fast);
}

.teacher-dropdown-item:hover {
    background: #F4F7FB;
    color: #162044;
}

.teacher-dropdown-item.danger {
    color: #E05252;
}

.teacher-dropdown-item.danger:hover {
    background: #FEF2F2;
    color: #E05252;
}

.teacher-dropdown-item svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 1.5px;
    fill: none;
}


/* Responsiveness for Teachers layout */
@media (max-width: 992px) {
    .teachers-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .salaries-sessions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .salaries-sessions-card {
        height: auto;
    }

    .teacher-card-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .teacher-card-meta-list {
        flex-wrap: wrap;
        gap: 10px 15px;
    }
}

@media (max-width: 576px) {
    .teachers-stats-row {
        grid-template-columns: 1fr;
    }

    .salaries-sessions-grid {
        grid-template-columns: 1fr;
    }

    .teacher-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .teacher-card-actions {
        align-self: flex-end;
    }
}

/* ==========================================================================
   Educational Programs Dashboard Section
   ========================================================================== */

.programs-content {
    padding: 18.75px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.programs-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18.75px;
}

.programs-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.programs-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.programs-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

.btn-add-program {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    transition: var(--transition-fast);
}

.btn-add-program:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 22px rgba(109, 196, 36, 0.5);
}

.programs-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 18.75px;
}

.program-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    transition: var(--transition-normal);
    height: 81.28px;
}

.program-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(13, 45, 94, 0.04);
}

.program-stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 22.5px;
    line-height: 30px;
    text-align: center;
    margin: 0;
}

.program-stat-value.ongoing {
    color: #4A5DAA;
}

.program-stat-value.upcoming {
    color: #9333EA;
}

.program-stat-value.finished {
    color: #8AAACF;
}

.program-stat-value.total-registered {
    color: #22863A;
}

.program-stat-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
    color: #8AAACF;
    margin-top: 3.75px;
}

.programs-filter-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18.75px;
    gap: 15px;
}

.programs-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18.75px;
    width: 100%;
}

.program-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 257.38px;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 30px rgba(13, 45, 94, 0.06);
    z-index: 20;
}

.program-card:has(.program-actions-dropdown.active) {
    z-index: 21;
}

.program-card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
}

.program-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-val {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 22.5px;
    line-height: 30px;
    color: #162044;
}

.price-lbl {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

.program-card-badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
}

.badge-type {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    padding: 2px 10px;
    border-radius: 9999px;
    color: #FFFFFF;
}

.badge-type.type-follow {
    background: #4A5DAA;
}

.badge-type.type-discount {
    background: #9333EA;
}

.badge-type.type-int1 {
    background: #6DC424;
}

.badge-type.type-int2 {
    background: #E05252;
}

.badge-type.type-exn {
    background: #22863A;
}

.badge-type.type-qui {
    background: #5A6E8C;
}

.badge-status {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    padding: 2px 10px;
    border-radius: 9999px;
}

.badge-status.status-ongoing {
    background: #EFF6FF;
    color: #1447E6;
}

.badge-status.status-upcoming {
    background: #F5F3FF;
    color: #7008E7;
}

.badge-status.status-finished {
    background: #F1F5F9;
    color: #62748E;
}

.program-card-info-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.program-name-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.program-title-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    color: #162044;
    margin: 0;
}

.program-code-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin-top: 1.8px;
}

.program-desc-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    margin: 0 0 11.25px 0;
    text-align: right;
}

.program-timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 11.25px;
}

.timeline-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 7.5px;
    background: #F0F4FB;
    border-radius: 11.25px;
    box-sizing: border-box;
}

.timeline-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin-bottom: 2px;
}

.timeline-date {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
}

.program-progress-section {
    display: flex;
    flex-direction: column;
    gap: 5.6px;
    margin-bottom: 11.25px;
}

.progress-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.progress-percent {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
}

.progress-percent.orange {
    color: #FE9A00;
}

.progress-percent.green {
    color: #009966;
}

.progress-registered {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
}

.progress-bar-bg {
    height: 7.49px;
    background: #E8ECF8;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.progress-bar-fill.fill-follow {
    background: #4A5DAA;
}

.progress-bar-fill.fill-discount {
    background: #9333EA;
}

.progress-bar-fill.fill-int1 {
    background: #6DC424;
}

.progress-bar-fill.fill-int2 {
    background: #E05252;
}

.progress-bar-fill.fill-exn {
    background: #22863A;
}

.progress-bar-fill.fill-qui {
    background: #5A6E8C;
}

.program-teacher-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 11.25px;
    border-top: 1px solid rgba(13, 45, 94, 0.04);
}

.program-teacher-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
}

/* Actions Menu Dropdown inside Program Card */
.program-actions-dropdown {
    position: absolute;
    top: 40px;
    left: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    box-shadow: 0px 10px 25px rgba(13, 45, 94, 0.08);
    border-radius: 11.25px;
    z-index: 10;
    display: none;
    flex-direction: column;
    padding: 5px;
    min-width: 120px;
}

.program-actions-dropdown.active {
    display: flex;
}

.program-dropdown-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    padding: 7.5px 10px;
    gap: 7.5px;
    background: transparent;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    color: #5A6E8C;
    cursor: pointer;
    border-radius: 7.5px;
    width: 100%;
    text-align: right;
    transition: var(--transition-fast);
}

.program-dropdown-item:hover {
    background: #F4F7FB;
    color: #162044;
}

.program-dropdown-item.danger {
    color: #E05252;
}

.program-dropdown-item.danger:hover {
    background: #FEF2F2;
    color: #E05252;
}

.program-dropdown-item svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 1.5px;
    fill: none;
}

/* Responsiveness for Programs layout */
@media (max-width: 992px) {
    .programs-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-list-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .programs-stats-row {
        grid-template-columns: 1fr;
    }

    .programs-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .program-timeline-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Halls and Classes Dashboard Section
   ========================================================================== */

.halls-content {
    padding: 18.75px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.halls-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18.75px;
}

.halls-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.halls-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.halls-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

.btn-add-hall {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    transition: var(--transition-fast);
}

.btn-add-hall:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 22px rgba(109, 196, 36, 0.5);
}

.halls-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 18.75px;
}

.hall-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    transition: var(--transition-normal);
    height: 81.28px;
}

.hall-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(13, 45, 94, 0.04);
}

.hall-stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 22.5px;
    line-height: 30px;
    text-align: center;
    margin: 0;
}

.hall-stat-value.total-halls {
    color: #4A5DAA;
}

.hall-stat-value.available {
    color: #22863A;
}

.hall-stat-value.full {
    color: #E05252;
}

.hall-stat-value.capacity {
    color: #6DC424;
}

.hall-stat-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
    color: #8AAACF;
    margin-top: 3.75px;
}

.halls-filter-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18.75px;
    gap: 15px;
}

.halls-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18.75px;
    width: 100%;
}

.hall-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 294.87px;
}

.hall-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 30px rgba(13, 45, 94, 0.06);
    z-index: 20;
}

.hall-card:has(.hall-actions-dropdown.active) {
    z-index: 21;
}

.hall-card-header {
    direction: ltr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.hall-card-actions {
    display: flex;
    align-items: center;
    gap: 7.5px;
}

.hall-actions-dropdown {
    position: absolute;
    top: 40px;
    left: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    box-shadow: 0px 10px 25px rgba(13, 45, 94, 0.08);
    border-radius: 11.25px;
    z-index: 10;
    display: none;
    flex-direction: column;
    padding: 5px;
    min-width: 120px;
}

.hall-actions-dropdown.active {
    display: flex;
}

.hall-dropdown-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    padding: 7.5px 10px;
    gap: 7.5px;
    background: transparent;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    color: #5A6E8C;
    cursor: pointer;
    border-radius: 7.5px;
    width: 100%;
    text-align: right;
    transition: var(--transition-fast);
}

.hall-dropdown-item:hover {
    background: #F4F7FB;
    color: #162044;
}

.hall-dropdown-item.danger {
    color: #E05252;
}

.hall-dropdown-item.danger:hover {
    background: #FEF2F2;
    color: #E05252;
}

.hall-dropdown-item svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 1.5px;
    fill: none;
}

.hall-card-title-group {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 7.5px;
}

.hall-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    color: #162044;
    margin: 0;
}

.hall-badge-status {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    padding: 2px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hall-badge-status.status-available {
    background: #ECFDF5;
    color: #007A55;
}

.hall-badge-status.status-full {
    background: #FEF2F2;
    color: #E7000B;
}

.hall-card-floor-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 15px;
}

.hall-card-floor-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

.hall-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.hall-metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 11.25px;
    background: #F0F4FB;
    border-radius: 11.25px;
    box-sizing: border-box;
}

.hall-metric-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 18.75px;
    line-height: 26px;
    margin: 0;
    text-align: center;
}

.hall-metric-value.val-capacity {
    color: #1E3070;
}

.hall-metric-value.val-current {
    color: #E05252;
}

.hall-metric-value.val-available {
    color: #6DC424;
}

.hall-metric-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin-top: 2px;
    text-align: center;
}

.hall-fullness-section {
    display: flex;
    flex-direction: column;
    gap: 5.6px;
    margin-bottom: 11.25px;
}

.hall-fullness-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.hall-fullness-percent {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
}

.hall-fullness-percent.green {
    color: #009966;
}

.hall-fullness-percent.red {
    color: #FB2C36;
}

.hall-fullness-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
}

.hall-progress-bg {
    height: 9.36px;
    background: #E8ECF8;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.hall-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.hall-progress-fill.fill-green {
    background: #22863A;
}

.hall-progress-fill.fill-red {
    background: #E05252;
}

.hall-full-banner {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    padding: 9.375px;
    gap: 7.5px;
    background: #FEF2F2;
    border-radius: 11.25px;
    margin-bottom: 11.25px;
    box-sizing: border-box;
}

.hall-full-banner-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #E7000B;
}

.hall-full-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hall-full-banner-icon svg {
    width: 12.99px;
    height: 12.99px;
    stroke: #FB2C36;
    fill: none;
}

.hall-features-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 11.25px;
    border-top: 1px solid rgba(13, 45, 94, 0.04);
}

.hall-feature-tag {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 3.75px;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
}

.hall-feature-tag.enabled {
    color: #009966;
}

.hall-feature-tag.disabled {
    color: #90A1B9;
}

.hall-feature-tag svg {
    width: 11.99px;
    height: 11.99px;
    stroke: currentColor;
    stroke-width: 1px;
    fill: none;
}

/* Responsiveness for Halls layout */
@media (max-width: 992px) {
    .halls-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .halls-list-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .halls-stats-row {
        grid-template-columns: 1fr;
    }

    .halls-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hall-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Schedule Management Module Styles
   ========================================== */
.schedule-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}

.schedule-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18.75px;
}

.schedule-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.schedule-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.schedule-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 3px 0 0 0;
}

.schedule-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
}

.btn-add-schedule {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-add-schedule:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-add-schedule .plus-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
}

.btn-schedule-action {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 7.5px 11.25px;
    gap: 5.62px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(109, 196, 36, 0.25);
    border-radius: 11.25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #1E3070;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-schedule-action:hover {
    background: rgba(109, 196, 36, 0.05);
    border-color: rgba(109, 196, 36, 0.5);
}

.schedule-card-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: 100%;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    text-align: center;
}

.schedule-table th {
    background: linear-gradient(90deg, #162044 0%, #4A5DAA 100%);
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    padding: 11.5px 15px;
}

.schedule-table td {
    border-top: 1.27467px solid rgba(13, 45, 94, 0.08);
    padding: 8px;
    height: 81.58px;
    vertical-align: middle;
}

.schedule-time-cell {
    font-family: 'Consolas', monospace;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    font-weight: 600;
    width: 120px;
    white-space: nowrap;
}

.schedule-empty-cell {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #CAD5E2;
}

.schedule-block {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7.5px;
    height: 65.36px;
    border-radius: 11.25px;
    margin: 0 auto;
    width: 100%;
    max-width: 185px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.schedule-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.schedule-block .schedule-subject {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 14px;
    margin: 0 0 2px 0;
}

.schedule-block .schedule-teacher {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    margin: 0 0 1px 0;
}

.schedule-block .schedule-hall {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

/* Schedule Themes */
.schedule-block.theme-blue {
    background: rgba(74, 93, 170, 0.094);
    border: 1.27467px solid rgba(74, 93, 170, 0.2);
}

.schedule-block.theme-blue .schedule-subject {
    color: #4A5DAA;
}

.schedule-block.theme-green {
    background: rgba(34, 134, 58, 0.094);
    border: 1.27467px solid rgba(34, 134, 58, 0.2);
}

.schedule-block.theme-green .schedule-subject {
    color: #22863A;
}

.schedule-block.theme-lime {
    background: rgba(109, 196, 36, 0.094);
    border: 1.27467px solid rgba(109, 196, 36, 0.2);
}

.schedule-block.theme-lime .schedule-subject {
    color: #6DC424;
}

.schedule-block.theme-purple {
    background: rgba(147, 51, 234, 0.094);
    border: 1.27467px solid rgba(147, 51, 234, 0.2);
}

.schedule-block.theme-purple .schedule-subject {
    color: #9333EA;
}

.schedule-block.theme-red {
    background: rgba(224, 82, 82, 0.094);
    border: 1.27467px solid rgba(224, 82, 82, 0.2);
}

.schedule-block.theme-red .schedule-subject {
    color: #E05252;
}

.schedule-block .btn-delete-session {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: #FF4D4D;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.schedule-block:hover .btn-delete-session {
    opacity: 1;
}

/* Print Specific Style Adjustments */
@media print {
    body * {
        visibility: hidden;
    }

    .schedule-card-wrapper,
    .schedule-card-wrapper * {
        visibility: visible;
    }

    .schedule-card-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
    }

    .schedule-table th {
        background: #162044 !important;
        color: #FFFFFF !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .schedule-block {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 992px) {
    .schedule-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .schedule-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ==========================================
   Attendance and Absence Module Styles
   ========================================== */
.attendance-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}

.attendance-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18.75px;
}

.attendance-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.attendance-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.attendance-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 3px 0 0 0;
}

.attendance-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
}

.btn-add-attendance {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-add-attendance:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-add-attendance .plus-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
}

.btn-attendance-action {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9.375px 13.125px;
    gap: 5.62px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.22);
    box-shadow: 0px 2px 8px rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #1E3070;
    transition: background-color 0.2s;
}

.btn-attendance-action:hover {
    background: rgba(13, 45, 94, 0.03);
}

/* Stats Row */
.attendance-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18.75px;
    width: 100%;
    margin-bottom: 18.75px;
}

.attendance-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    text-align: center;
    height: 81.28px;
}

.attendance-stat-card .stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 22.5px;
    line-height: 30px;
    margin: 0 0 2px 0;
}

.attendance-stat-card .stat-value.present {
    color: #22863A;
}

.attendance-stat-card .stat-value.absent {
    color: #E05252;
}

.attendance-stat-card .stat-value.late {
    color: #6DC424;
}

.attendance-stat-card .stat-value.rate {
    color: #4A5DAA;
}

.attendance-stat-card .stat-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

/* Card table wrapper */
.attendance-card-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: 100%;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    overflow: hidden;
    margin-bottom: 18.75px;
}

.attendance-card-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18.75px;
    width: 100%;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.attendance-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.attendance-table-container {
    width: 100%;
    overflow-x: auto;
}

.attendance-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
    text-align: center;
}

.attendance-table th {
    background: #F4F7FB;
    color: #5A6E8C;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    padding: 11.5px 15px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
}

.attendance-table td {
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
    padding: 10px 15px;
    height: 53.74px;
    vertical-align: middle;
}

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

/* Student Profile Info cell */
.student-profile-cell {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    width: 220px;
}

.student-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.student-name-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
    margin: 0 0 2px 0;
}

.student-code-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

.student-avatar-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    background: #1E3070;
    border-radius: 50%;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
}

/* Status Badges */
.status-pill {
    display: inline-block;
    width: 58px;
    padding: 4.5px 0;
    border-radius: 427707e+07px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.status-pill:hover {
    opacity: 0.85;
}

.status-pill.present {
    background: #D0FAE5;
    color: #007A55;
}

.status-pill.absent {
    background: #FFE2E2;
    color: #E7000B;
}

.status-pill.late {
    background: #FEF3C6;
    color: #BB4D00;
}

/* Attendance Progress Bar Cell */
.rate-progress-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7.5px;
    width: 195px;
    margin: 0 auto;
}

.rate-percent-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    width: 32px;
    text-align: left;
}

.rate-percent-label.green {
    color: #009966;
}

.rate-percent-label.orange {
    color: #E17100;
}

.rate-percent-label.red {
    color: #FB2C36;
}

.rate-progress-bg {
    display: flex;
    width: 154.72px;
    height: 7.49px;
    background: #E8ECF8;
    border-radius: 10px;
    overflow: hidden;
}

.rate-progress-fill {
    height: 100%;
    border-radius: 10px;
}

.rate-progress-fill.green {
    background: #22863A;
}

.rate-progress-fill.lime {
    background: #6DC424;
}

.rate-progress-fill.red {
    background: #E05252;
}

/* Action Notify Button */
.btn-action-notify-alert {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    background: #FEF2F2;
    border: 1.27467px solid #FECACA;
    border-radius: 11.25px;
    color: #E05252;
    cursor: pointer;
    margin: 0 auto;
    transition: background-color 0.2s, color 0.2s;
}

.btn-action-notify-alert:hover {
    background: #E05252;
    color: #FFFFFF;
}

.cell-empty-indicator {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #CAD5E2;
}

/* Bottom Grid Section */
.attendance-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18.75px;
    width: 100%;
}

.attendance-bottom-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    min-height: 212px;
}

.bottom-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0 0 15px 0;
}

/* Teachers Attendance Styles */
.teachers-list-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 11.25px;
}

.teacher-attendance-row {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 11.25px;
    width: 100%;
}

.teacher-avatar-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    background: #6DC424;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    border-radius: 50%;
}

.teacher-rate-progress-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.teacher-rate-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 3.75px;
}

.teacher-rate-percent {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    color: #009966;
}

.teacher-rate-percent.orange {
    color: #E17100;
}

.teacher-name-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
}

.teacher-progress-bg {
    width: 100%;
    height: 5.62px;
    background: #E8ECF8;
    border-radius: 10px;
    overflow: hidden;
}

.teacher-progress-fill {
    height: 100%;
    border-radius: 10px;
}

.teacher-progress-fill.green {
    background: #22863A;
}

.teacher-progress-fill.lime {
    background: #6DC424;
}

/* Warnings list section */
.warnings-list-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 11.25px;
}

.warning-alert-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 11.25px;
    gap: 11.25px;
    width: 100%;
    border-radius: 11.25px;
}

.warning-alert-box.yellow-alert {
    background: #FFFBEB;
}

.warning-alert-box.red-alert {
    background: #FEF2F2;
}

.warning-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15.99px;
    height: 15.99px;
}

.warning-icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.warning-alert-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.warning-alert-student {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
    margin: 0;
}

.warning-alert-count {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

.btn-send-warning-notify {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 3.75px 7.5px;
    gap: 3.75px;
    background: #6DC424;
    border-radius: 11.25px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    transition: opacity 0.2s;
}

.btn-send-warning-notify.danger-btn {
    background: #E05252;
}

.btn-send-warning-notify:hover {
    opacity: 0.9;
}

/* QR Code Dialog Overlay */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.qr-modal-overlay.active {
    display: flex;
}

.qr-modal-panel {
    background: #FFFFFF;
    border-radius: 15.25px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qr-modal-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #162044;
    margin: 0;
}

.qr-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #8AAACF;
    font-size: 20px;
}

.qr-code-placeholder-wrapper {
    margin: 20px auto;
    width: 200px;
    height: 200px;
    border: 4px dashed #6DC424;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F4F7FB;
    position: relative;
    overflow: hidden;
}

.qr-scanner-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #6DC424;
    top: 0;
    animation: scanAnimation 2s linear infinite;
    box-shadow: 0 0 8px #6DC424;
}

@keyframes scanAnimation {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.qr-modal-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: #5A6E8C;
    line-height: 1.6;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .attendance-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .attendance-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .attendance-stats-row {
        grid-template-columns: 1fr;
    }

    .attendance-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .attendance-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ==========================================
   Exams and Results Module Styles
   ========================================== */
.exams-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}

.exams-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18.75px;
}

.exams-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.exams-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.exams-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 3px 0 0 0;
}

.btn-add-exam {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-add-exam:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-add-exam .plus-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
}

/* Stats Row */
.exams-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18.75px;
    width: 100%;
    margin-bottom: 18.75px;
}

.exams-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    text-align: center;
    height: 81.28px;
}

.exams-stat-card .stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 22.5px;
    line-height: 30px;
    margin: 0 0 2px 0;
}

.exams-stat-card .stat-value.approved {
    color: #22863A;
}

.exams-stat-card .stat-value.pending {
    color: #6DC424;
}

.exams-stat-card .stat-value.average {
    color: #4A5DAA;
}

.exams-stat-card .stat-value.highest {
    color: #9333EA;
}

.exams-stat-card .stat-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

/* Exams Layout Grid */
.exams-layout-grid {
    display: grid;
    grid-template-columns: 444px 1fr;
    gap: 18.75px;
    width: 100%;
    align-items: start;
}

/* Left Column: Exams List */
.exams-list-column {
    display: flex;
    flex-direction: column;
    gap: 11.25px;
}

.exam-card-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.exam-card-item:hover {
    transform: translateY(-1px);
    box-shadow: 0px 4px 12px rgba(13, 45, 94, 0.05);
}

.exam-card-item.active {
    border-color: #193CB8;
    box-shadow: 0px 0px 0px 2px #193CB8;
}

.exam-card-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 7.5px;
}

.exam-badge-status {
    padding: 2px 7.5px;
    border-radius: 100px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
}

.exam-badge-status.approved {
    background: #ECFDF5;
    color: #007A55;
}

.exam-badge-status.pending {
    background: #FFFBEB;
    color: #BB4D00;
}

.exam-card-details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.exam-card-actions-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.exam-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13.125px;
    line-height: 18px;
    color: #162044;
    margin: 0 0 3.75px 0;
    text-align: right;
}

.exam-card-meta {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

.exam-card-footer-tags {
    display: flex;
    flex-direction: row-reverse;
    gap: 7.5px;
    margin-top: 7.5px;
    width: 100%;
}

.exam-tag-type {
    padding: 2px 7.5px;
    background: #E8ECF8;
    color: #1E3070;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    border-radius: 100px;
}

.exam-tag-level {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
}

.btn-exam-more-actions {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 29.99px;
    height: 29.99px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.18);
    box-shadow: 0px 2px 6px rgba(13, 45, 94, 0.1);
    border-radius: 11.25px;
    cursor: pointer;
    color: #5A6E8C;
    transition: background-color 0.2s;
}

.btn-exam-more-actions:hover {
    background: #F4F7FB;
}

/* Right Column: Results Section */
.exam-results-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    overflow: hidden;
    width: 100%;
}

.results-card-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18.75px;
    width: 100%;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.results-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.btn-results-print {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5.625px 11.25px;
    gap: 5.62px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 11.25px;
    background: #FFFFFF;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    transition: background-color 0.2s;
}

.btn-results-print:hover {
    background: #F4F7FB;
}

/* Results Table */
.results-table-container {
    width: 100%;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.results-table th {
    background: #F4F7FB;
    color: #5A6E8C;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    padding: 11.5px 15px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
}

.results-table td {
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
    padding: 10px 15px;
    height: 49.97px;
    vertical-align: middle;
}

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

/* Rank Circle Badge */
.rank-badge-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    border-radius: 50%;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
}

.rank-badge-circle.rank-1 {
    background: #FDC700;
}

.rank-badge-circle.rank-2 {
    background: #90A1B9;
}

.rank-badge-circle.rank-3 {
    background: #F54900;
}

.rank-badge-circle.rank-other {
    background: #E2E8F0;
    color: #62748E;
}

.result-student-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
}

.result-grade-score {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 15px;
    line-height: 22px;
    color: #1E3070;
    direction: ltr;
    display: inline-block;
}

/* Results Progress Bar */
.results-rate-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
    width: 157.38px;
}

.results-rate-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    width: 32px;
    text-align: right;
}

.results-rate-label.green {
    color: #22863A;
}

.results-rate-label.red {
    color: #E05252;
}

.results-progress-bg {
    width: 116.14px;
    height: 9.36px;
    background: #E8ECF8;
    border-radius: 100px;
    overflow: hidden;
}

.results-progress-fill {
    height: 100%;
    border-radius: 100px;
}

.results-progress-fill.green {
    background: #6DC424;
}

.results-progress-fill.red {
    background: #E05252;
}

/* Result Status Badge */
.badge-result-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 100px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
}

.badge-result-status.passed {
    background: #ECFDF5;
    color: #007A55;
}

.badge-result-status.failed {
    background: #FEF2F2;
    color: #E7000B;
}

/* Empty placeholder */
.results-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.results-empty-state-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #162044;
    margin: 10px 0;
}

.results-empty-state-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: #8AAACF;
    margin-bottom: 20px;
}

/* Grade Entry Form in Drawer */
.grade-inputs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.grade-entry-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(13, 45, 94, 0.05);
}

.grade-student-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    color: #162044;
}

.grade-input-box {
    width: 80px;
    text-align: center;
}

@media (max-width: 992px) {
    .exams-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .exams-stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .exams-stats-row {
        grid-template-columns: 1fr;
    }

    .exams-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================
   Finance & Invoices Module
   ========================================== */
.finance-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}

.finance-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
    margin-bottom: 18.75px;
}

.finance-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.finance-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    color: #162044;
    margin: 0;
}

.finance-header-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    color: #8AAACF;
    margin: 1.875px 0 0;
}

.btn-add-invoice {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-invoice:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 22px rgba(109, 196, 36, 0.5);
}

.btn-add-invoice:active {
    transform: translateY(0);
}

.plus-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
}

/* Statistics row */
.finance-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 18.75px;
    box-sizing: border-box;
}

.finance-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    position: relative;
    height: 77.52px;
    justify-content: center;
}

.finance-stat-card .stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 18.75px;
    line-height: 26px;
    margin: 0;
}

.finance-stat-card .stat-value.income {
    color: #22863A;
}

.finance-stat-card .stat-value.paid-all {
    color: #4A5DAA;
}

.finance-stat-card .stat-value.pending {
    color: #E05252;
}

.finance-stat-card .stat-value.today {
    color: #6DC424;
}

.finance-stat-card .stat-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    color: #8AAACF;
    margin-top: 3.75px;
}

/* Layout Grid */
.finance-layout-grid {
    display: grid;
    grid-template-columns: 750px 1fr;
    gap: 15.02px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

/* Invoices Log Card (Right) */
.invoices-log-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    overflow: hidden;
}

.invoices-card-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18.75px;
    width: 100%;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.invoices-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #162044;
    margin: 0;
}

.invoices-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
}

.btn-finance-action {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5.625px 11.25px;
    gap: 5.62px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 11.25px;
    background: #FFFFFF;
    cursor: pointer;
    color: #5A6E8C;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    transition: all 0.2s;
}

.btn-finance-action:hover {
    background: #F4F7FB;
    border-color: rgba(13, 45, 94, 0.25);
    color: #162044;
}

.btn-finance-action svg {
    width: 11.99px;
    height: 11.99px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* Invoices Table */
.invoices-table-container {
    width: 100%;
    overflow-x: auto;
}

.invoices-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.invoices-table th {
    background: #F4F7FB;
    padding: 10.41px 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    color: #5A6E8C;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.invoices-table td {
    padding: 12.47px 15px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    vertical-align: middle;
}

.invoices-table tr:hover td {
    background: #F8FAFC;
}

.invoice-number-cell {
    font-family: 'Consolas', monospace !important;
    font-size: 11.25px;
    color: #5A6E8C;
}

.invoice-student-cell {
    font-weight: 600;
    color: #162044;
}

.invoice-amount-cell {
    font-weight: 700;
    color: #1E3070;
}

.invoice-paid-cell {
    font-weight: 400;
    color: #22863A;
}

/* Badges and pills */
.payment-method-badge {
    display: inline-block;
    padding: 3.5px 10px;
    border-radius: 20px;
    font-size: 11.25px;
    font-weight: 400;
    text-align: center;
}

.payment-method-badge.cliq {
    background: #E8ECF8;
    color: #1E3070;
}

.payment-method-badge.cash {
    background: #F0FDF4;
    color: #15803D;
}

.payment-method-badge.bank {
    background: #FAF5FF;
    color: #701A75;
}

.invoice-status-badge {
    display: inline-block;
    padding: 3.5px 10px;
    border-radius: 20px;
    font-size: 11.25px;
    font-weight: 600;
    text-align: center;
}

.invoice-status-badge.paid {
    background: #EFF6FF;
    color: #1447E6;
}

.invoice-status-badge.partial {
    background: #FFFBEB;
    color: #BB4D00;
}

.invoice-status-badge.late {
    background: #FEF2F2;
    color: #E7000B;
}

/* Action Buttons in Table */
.invoice-actions-cell {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 3.75px;
}

.btn-invoice-action-circle {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.12);
    box-shadow: 0px 1px 4px rgba(13, 45, 94, 0.08);
    border-radius: 11.25px;
    cursor: pointer;
    color: #5A6E8C;
    transition: all 0.2s;
}

.btn-invoice-action-circle:hover {
    background: #F4F7FB;
    border-color: rgba(13, 45, 94, 0.25);
    color: #162044;
}

.btn-invoice-action-circle.primary {
    color: #4A5DAA;
    border-color: rgba(74, 93, 170, 0.2);
}

.btn-invoice-action-circle.primary:hover {
    background: #EFF1F9;
    color: #1E3070;
}

.btn-invoice-action-circle.danger {
    color: #E05252;
    border-color: rgba(224, 82, 82, 0.2);
}

.btn-invoice-action-circle.danger:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

.btn-invoice-action-circle svg {
    width: 12.99px;
    height: 12.99px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

/* Left side Column (Payment Methods and Installments) */
.finance-left-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.finance-card-left {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    width: 100%;
}

.finance-card-left-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #162044;
    margin: 0 0 15px 0;
}

/* Payment Methods statistics style */
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 11.25px;
    width: 100%;
}

.payment-method-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.payment-method-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 3.75px;
}

.payment-method-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    color: #5A6E8C;
}

.payment-method-pct {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    color: #162044;
}

.progress-bar-bg {
    width: 100%;
    height: 7.49px;
    background: #E8ECF8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-bar-fill.green {
    background: #22863A;
}

.progress-bar-fill.indigo {
    background: #4A5DAA;
}

.progress-bar-fill.purple {
    background: #9333EA;
}

/* Due Installments style */
.due-installments-list {
    display: flex;
    flex-direction: column;
    gap: 11.25px;
    width: 100%;
}

.due-installment-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 11.25px;
    background: #FEF2F2;
    border-radius: 11.25px;
    width: 100%;
    box-sizing: border-box;
}

.due-student-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    color: #162044;
    margin: 0 0 5px 0;
}

.due-actions-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.due-remaining-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    color: #E05252;
}

.btn-register-payment-mini {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3.5px 12px;
    background: #1E3070;
    border-radius: 11.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    transition: background 0.2s;
}

.btn-register-payment-mini:hover {
    background: #152250;
}

/* Responsiveness media queries */
@media (max-width: 1200px) {
    .finance-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .finance-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .finance-stats-row {
        grid-template-columns: 1fr;
    }

    .finance-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Custom styles for Accounting Module */
.accounting-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}

.accounting-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
    margin-bottom: 18.75px;
}

.accounting-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.accounting-title-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
    margin: 0;
}

.accounting-subtitle-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

/* Add Entry Button Style */
.btn-add-entry {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    min-width: 122.62px;
    height: 37.75px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 22px rgba(109, 196, 36, 0.5);
}

.btn-add-entry:active {
    transform: translateY(0);
}

.btn-add-entry .icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
}

.btn-add-entry .icon-circle svg {
    width: 11.99px;
    height: 11.99px;
    stroke: #FFFFFF;
    stroke-width: 2;
}

/* Statistics Row */
.accounting-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 18.75px;
}

.accounting-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    transition: all 0.3s ease;
    position: relative;
}

.accounting-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 24px rgba(13, 45, 94, 0.05);
    border-color: rgba(13, 45, 94, 0.15);
}

.accounting-stat-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 18.75px;
    line-height: 26px;
    margin-bottom: 3.75px;
}

.accounting-stat-value.revenue {
    color: #22863A;
}

.accounting-stat-value.expenses {
    color: #E05252;
}

.accounting-stat-value.profit {
    color: #4A5DAA;
}

.accounting-stat-value.receivables {
    color: #6DC424;
}

.accounting-stat-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

/* Middle section Layout */
.accounting-middle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18.75px;
    width: 100%;
    margin-bottom: 18.75px;
}

.accounting-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    width: 100%;
    min-height: 321.06px;
}

.accounting-card-title-area {
    display: flex;
    flex-direction: column;
    gap: 3.75px;
    width: 100%;
    margin-bottom: 15px;
}

.accounting-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.accounting-card-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

/* CSS Custom Bar Chart */
.bar-chart-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding-bottom: 25px;
    padding-left: 45px;
    /* space for Y axis */
    box-sizing: border-box;
}

.chart-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 25px;
    width: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 9.99915px;
    color: #8AAACF;
}

.chart-grid-lines {
    position: absolute;
    left: 45px;
    right: 0;
    top: 0;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.chart-grid-line {
    width: 100%;
    border-top: 0.999915px dashed rgba(13, 45, 94, 0.06);
}

.chart-bars-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 2;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    width: 12%;
    position: relative;
}

.chart-bar-fill {
    width: 100%;
    background: #4A5DAA;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.chart-bar-fill:hover {
    background: #3B4B88;
    filter: brightness(1.05);
}

.chart-bar-fill::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #162044;
    color: #FFFFFF;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.chart-bar-fill:hover::after {
    opacity: 1;
}

.chart-bar-label {
    position: absolute;
    bottom: -22px;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 10.9991px;
    color: #8AAACF;
    white-space: nowrap;
}

/* Chart of Accounts Styles */
.chart-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 7.5px;
    width: 100%;
}

.account-item-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 11.25px;
    background: #F4F7FB;
    border-radius: 11.25px;
    width: 100%;
    transition: background-color 0.2s;
}

.account-item-box:hover {
    background: #EBF1F8;
}

.account-item-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 3.75px;
}

.account-item-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
}

.account-item-name.assets {
    color: #22863A;
}

.account-item-name.liabilities {
    color: #E05252;
}

.account-item-name.revenues {
    color: #4A5DAA;
}

.account-item-name.expenses {
    color: #6DC424;
}

.account-item-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
}

.account-item-details {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

/* Bottom Section Transactions Card */
.transactions-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    width: 100%;
    overflow: hidden;
}

.transactions-card-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18.75px;
    width: 100%;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.transactions-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.btn-export-excel {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5.625px 11.25px;
    gap: 5.62px;
    height: 28.8px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    background: #FFFFFF;
    border-radius: 11.25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    color: #5A6E8C;
    transition: all 0.2s;
}

.btn-export-excel:hover {
    background: #F4F7FB;
    border-color: rgba(13, 45, 94, 0.25);
    color: #1C3050;
}

.btn-export-excel svg {
    width: 11.99px;
    height: 11.99px;
    stroke: #5A6E8C;
    stroke-width: 2;
}

/* Styled Responsive Data Table */
.transactions-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.transactions-table th {
    background: #F4F7FB;
    color: #5A6E8C;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    padding: 12px 18.75px;
    line-height: 15px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.transactions-table td {
    padding: 12px 18.75px;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
}

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

.transactions-table tr:hover td {
    background-color: #FAFBFD;
}

.entry-id-code {
    font-family: 'Consolas', monospace;
    color: #5A6E8C;
}

.entry-desc-cell {
    font-weight: 600 !important;
    color: #162044 !important;
}

.debit-val {
    font-weight: 600;
    color: #22863A;
}

.credit-val {
    font-weight: 600;
    color: #E05252;
}

.empty-indicator {
    color: #8AAACF;
}

/* Badge Types */
.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    text-align: center;
}

.type-badge.revenue {
    background: #ECFDF5;
    color: #007A55;
}

.type-badge.expense {
    background: #FEF2F2;
    color: #E7000B;
}

/* Actions buttons */
.action-buttons-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.btn-action-icon {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.12);
    box-shadow: 0px 1px 4px rgba(13, 45, 94, 0.08);
    border-radius: 11.25px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-icon:hover {
    background: #F4F7FB;
    border-color: rgba(13, 45, 94, 0.25);
}

.btn-action-icon svg {
    width: 12.99px;
    height: 12.99px;
}

.btn-action-icon.details svg {
    stroke: #5A6E8C;
}

.btn-action-icon.edit svg {
    stroke: #4A5DAA;
}

.btn-action-icon.delete svg {
    stroke: #E05252;
}

/* Toast style override */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    background: #162044;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    animation: toastFadeIn 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 4px solid #6DC424;
}

.toast-message.error {
    border-right-color: #E05252;
}

@keyframes toastFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Form Custom Styles */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group-custom label {
    font-family: 'Cairo', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #5A6E8C;
}

.form-control-custom {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: #162044;
    background-color: #FFFFFF;
    transition: all 0.2s;
}

.form-control-custom:focus {
    outline: none;
    border-color: #4A5DAA;
    box-shadow: 0 0 0 3px rgba(74, 93, 170, 0.1);
}

/* Response tweaks */
@media (max-width: 992px) {
    .accounting-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accounting-middle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .accounting-stats-grid {
        grid-template-columns: 1fr;
    }

    .accounting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Notifications Page Styles
   ========================================== */
.notifications-content {
    padding: 18.75px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    flex-grow: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: 18.75px;
}

.notifications-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 43.88px;
}

.notifications-header-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.notifications-header-title {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-size: 16.875px;
    line-height: 26px;
    color: #162044;
}

.notifications-header-subtitle {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

.btn-send-notification {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    width: 150px;
    height: 37.75px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-send-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 20px rgba(109, 196, 36, 0.6);
}

.btn-send-notification svg {
    width: 11.99px;
    height: 11.99px;
    stroke: #FFFFFF;
    stroke-width: 2.5px;
    fill: none;
}

.notifications-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18.75px;
    width: 100%;
}

.notification-stat-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    height: 81.28px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.notification-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 16px rgba(13, 45, 94, 0.06);
}

.notification-stat-value {
    font-family: 'Cairo', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 22.5px;
    line-height: 30px;
    text-align: center;
}

.notification-stat-value.blue {
    color: #4A5DAA;
}

.notification-stat-value.green {
    color: #22863A;
}

.notification-stat-value.light-green {
    color: #6DC424;
}

.notification-stat-value.purple {
    color: #9333EA;
}

.notification-stat-title {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
    color: #8AAACF;
    margin-top: 3.75px;
}

.notifications-grid {
    display: grid;
    grid-template-columns: 367.62px 1fr;
    gap: 18.75px;
    width: 100%;
    align-items: start;
}

.notifications-sidebar-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    width: 100%;
}

.notifications-sidebar-title {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin-bottom: 15px;
}

.notifications-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.form-group-custom label {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    margin-bottom: 3.75px;
}

.channel-selector-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7.5px;
    width: 100%;
}

.channel-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9.375px;
    gap: 3.75px;
    height: 56.04px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 11.25px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.channel-btn svg {
    width: 15.99px;
    height: 15.99px;
    transition: stroke var(--transition-fast);
}

.channel-btn span {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    text-align: center;
}

/* Channel styles */
.channel-btn.whatsapp {
    color: #22863A;
    border-color: rgba(34, 134, 58, 0.15);
}

.channel-btn.whatsapp svg {
    stroke: #22863A;
    fill: none;
}

.channel-btn.whatsapp:hover,
.channel-btn.whatsapp.active {
    background: rgba(34, 134, 58, 0.08);
    border-color: #22863A;
}

.channel-btn.sms {
    color: #4A5DAA;
    border-color: rgba(74, 93, 170, 0.15);
}

.channel-btn.sms svg {
    stroke: #4A5DAA;
    fill: none;
}

.channel-btn.sms:hover,
.channel-btn.sms.active {
    background: rgba(74, 93, 170, 0.08);
    border-color: #4A5DAA;
}

.channel-btn.email {
    color: #9333EA;
    border-color: rgba(147, 51, 234, 0.15);
}

.channel-btn.email svg {
    stroke: #9333EA;
    fill: none;
}

.channel-btn.email:hover,
.channel-btn.email.active {
    background: rgba(147, 51, 234, 0.08);
    border-color: #9333EA;
}

.btn-submit-notification {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 9.375px 0px;
    gap: 7.5px;
    width: 100%;
    height: 37.75px;
    background: #1E3070;
    border-radius: 11.25px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-size: 13.125px;
    line-height: 19px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-submit-notification:hover {
    background: #152252;
    transform: translateY(-1px);
}

.btn-submit-notification svg {
    width: 13.98px;
    height: 13.98px;
    stroke: #FFFFFF;
    stroke-width: 2px;
    fill: none;
}

.notifications-list-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    overflow: hidden;
    width: 100%;
}

.notifications-list-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 18.75px;
    gap: 11.25px;
    width: 100%;
    height: 57.52px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.filter-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5.625px 11.25px;
    height: 26.25px;
    border-radius: 11.25px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #62748E;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: #F0F4F8;
    color: #162044;
}

.filter-btn.active {
    background: #6DC424;
    color: #FFFFFF;
}

.notifications-list-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: 100%;
}

.notification-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 18.75px;
    gap: 15px;
    width: 100%;
    height: 91.52px;
    border-bottom: 1.27467px solid rgba(74, 93, 170, 0.12);
    transition: background var(--transition-fast), opacity 0.3s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #FAFBFD;
}

.notification-icon-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 33.74px;
    height: 33.74px;
    border-radius: 11.25px;
    flex-shrink: 0;
}

/* Specific background and stroke colors for icons */
.notification-icon-wrapper.whatsapp {
    background: #DCFCE7;
    color: #00A63E;
}

.notification-icon-wrapper.sms {
    background: #DBEAFE;
    color: #155DFC;
}

.notification-icon-wrapper.email {
    background: #EDE9FE;
    color: #7F22FE;
}

.notification-icon-wrapper svg {
    width: 15.99px;
    height: 15.99px;
    stroke: currentColor;
    stroke-width: 2px;
    fill: none;
}

.notification-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    gap: 2px;
}

.notification-info-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 7.5px;
    width: 100%;
}

.notification-sender-title {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
}

.notification-tag {
    display: inline-block;
    padding: 1.875px 5.62px;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    border-radius: 3.75px;
}

.notification-tag.whatsapp {
    background: #FEF3C6;
    color: #BB4D00;
}

.notification-tag.whatsapp-alt {
    background: #D0FAE5;
    color: #007A55;
}

.notification-tag.sms {
    background: #FFE2E2;
    color: #E7000B;
}

.notification-tag.sms-alt {
    background: #FEF3C6;
    color: #BB4D00;
}

.notification-tag.email {
    background: #DBEAFE;
    color: #155DFC;
}

.notification-text {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 18px;
    color: #5A6E8C;
    text-align: right;
}

.notification-time {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsiveness for Notifications */
@media (max-width: 992px) {
    .notifications-grid {
        grid-template-columns: 1fr;
    }

    .notifications-sidebar-card {
        display: none;
        /* Hide on mobile/tablet and use modal instead */
    }
}

@media (max-width: 768px) {
    .notifications-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .notifications-stats-row {
        grid-template-columns: 1fr;
    }

    .notification-item {
        height: auto;
        padding: 12px;
        flex-wrap: wrap;
    }
}

/* ==========================================
   Reports Page Styles
   ========================================== */
.reports-content {
    padding: 18.75px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    flex-grow: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: 18.75px;
}

.reports-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.reports-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
}

.btn-report-export {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 7.5px 11.25px;
    gap: 5.62px;
    height: 32.55px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(109, 196, 36, 0.25);
    border-radius: 11.25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #1E3070;
    transition: all 0.2s;
}

.btn-report-export:hover {
    background: #F4FBF0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(109, 196, 36, 0.1);
}

.btn-report-export svg {
    width: 12.99px;
    height: 12.99px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18.75px;
    width: 100%;
    align-self: stretch;
}

.reports-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    overflow: hidden;
    width: 100%;
    min-height: 412.37px;
}

.reports-card-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18.75px;
    width: 100%;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.reports-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.reports-card-body {
    padding: 18.75px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.reports-table-container {
    width: 100%;
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th {
    background: #F4F7FB;
    padding: 8.54px 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    text-align: right;
}

.reports-table td {
    padding: 12px 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
    vertical-align: middle;
}

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

.reports-table th:first-child,
.reports-table td:first-child {
    padding-right: 18.75px;
}

.reports-table th:last-child,
.reports-table td:last-child {
    padding-left: 18.75px;
}

.reports-val-total {
    font-weight: 700;
    color: #1E3070;
}

.reports-val-active {
    font-weight: 400;
    color: #22863A;
}

.reports-val-suspended {
    font-weight: 400;
    color: #E05252;
}

.reports-progress-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
}

.reports-progress-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    width: 30px;
    text-align: left;
}

.reports-progress-text.green {
    color: #22863A;
}

.reports-progress-text.lime {
    color: #6DC424;
}

.reports-progress-text.muted {
    color: #8AAACF;
}

.reports-progress-bg {
    width: 78px;
    height: 7.49px;
    background: #E8ECF8;
    border-radius: 10px;
    overflow: hidden;
}

.reports-progress-fill {
    height: 100%;
    border-radius: 10px;
}

.reports-progress-fill.green {
    background: #22863A;
}

.reports-progress-fill.lime {
    background: #6DC424;
}

.btn-reports-row-export {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    background: #E8ECF8;
    border: 1.27467px solid rgba(74, 93, 170, 0.2);
    border-radius: 11.25px;
    cursor: pointer;
    color: #4A5DAA;
    transition: all 0.2s;
}

.btn-reports-row-export:hover {
    background: #D5DEF2;
    transform: scale(1.05);
}

.btn-reports-row-export svg {
    width: 11.99px;
    height: 11.99px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.reports-chart-container {
    width: 100%;
    height: 200px;
    position: relative;
    margin-top: 10px;
}

.reports-stat-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11.25px;
    width: 100%;
    margin-top: 15px;
}

.reports-stat-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 11.25px;
    background: #F0F4FB;
    border-radius: 11.25px;
    box-sizing: border-box;
    gap: 2px;
}

.reports-stat-val {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    margin: 0;
}

.reports-stat-val.blue {
    color: #4A5DAA;
}

.reports-stat-val.lime {
    color: #6DC424;
}

.reports-stat-val.green {
    color: #22863A;
}

.reports-stat-val.purple {
    color: #9333EA;
}

.reports-stat-lbl {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 0;
}

@media (max-width: 992px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Permissions Page Styles
   ========================================== */
.permissions-content {
    padding: 18.75px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    flex-grow: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: 18.75px;
}

.permissions-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.btn-add-user {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9.375px 18.75px;
    gap: 9.38px;
    width: 155.62px;
    height: 37.75px;
    background: linear-gradient(135deg, #6DC424 0%, #4A8F1A 100%);
    box-shadow: 0px 4px 18px rgba(109, 196, 36, 0.4);
    border-radius: 15.25px;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #FFFFFF;
    transition: all 0.2s;
    justify-content: center;
}

.btn-add-user:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 20px rgba(109, 196, 36, 0.5);
}

.btn-add-user .plus-circle {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 18.74px;
    height: 18.74px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11.25px;
}

.btn-add-user .plus-circle svg {
    width: 11.99px;
    height: 11.99px;
    stroke: #FFFFFF;
    stroke-width: 2.2px;
}

.permissions-roles-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18.75px;
    width: 100%;
    align-self: stretch;
}

.permissions-role-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    height: 144.52px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.permissions-role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(13, 45, 94, 0.05);
}

.role-card-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.btn-role-options {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 29.99px;
    height: 29.99px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.18);
    box-shadow: 0px 2px 6px rgba(13, 45, 94, 0.1);
    border-radius: 11.25px;
    cursor: pointer;
    color: #5A6E8C;
    transition: all 0.2s;
}

.btn-role-options:hover {
    background: #F4F7FB;
}

.btn-role-options svg {
    width: 12.99px;
    height: 12.99px;
    fill: currentColor;
}

.role-icon-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 37.48px;
    height: 37.48px;
    border-radius: 11.25px;
}

.role-icon-wrapper.administrator {
    background: rgba(22, 32, 68, 0.133);
    color: #162044;
}

.role-icon-wrapper.admin {
    background: rgba(74, 93, 170, 0.133);
    color: #4A5DAA;
}

.role-icon-wrapper.employee {
    background: rgba(109, 196, 36, 0.133);
    color: #6DC424;
}

.role-icon-wrapper.teacher {
    background: rgba(34, 134, 58, 0.133);
    color: #22863A;
}

.role-icon-wrapper svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.66px;
    fill: none;
}

.role-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 11.25px;
    width: 100%;
}

.role-card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.role-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.role-user-count {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

.role-desc {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 18px;
    color: #5A6E8C;
    margin: 7.5px 0 0 0;
}

.permissions-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18.75px;
    width: 100%;
    align-self: stretch;
}

.permissions-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    overflow: hidden;
    width: 100%;
    height: 439.96px;
}

.permissions-card-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18.75px;
    width: 100%;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
    flex-shrink: 0;
}

.permissions-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.permissions-card-body {
    padding: 18.75px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 7.5px;
    overflow-y: auto;
    flex-grow: 1;
}

.active-user-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 11.25px;
    gap: 11.25px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 11.25px;
    transition: background 0.2s;
}

.active-user-item:hover {
    background: #F4F7FB;
}

.active-user-avatar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 33.74px;
    height: 33.74px;
    border-radius: 50%;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.active-user-avatar.red {
    background: #E05252;
}

.active-user-avatar.blue {
    background: #4A5DAA;
}

.active-user-avatar.green {
    background: #22863A;
}

.active-user-avatar.lime {
    background: #6DC424;
}

.active-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    gap: 2px;
}

.active-user-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
}

.active-user-details {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
}

.active-user-status {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin-left: 5px;
}

/* Permissions Matrix Table */
.matrix-table-container {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.matrix-table th {
    background: #F4F7FB;
    padding: 10.41px 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2;
}

.matrix-table th:first-child {
    text-align: right;
    padding-right: 18.75px;
}

.matrix-table td {
    padding: 9.17px 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.06);
    vertical-align: middle;
    text-align: center;
}

.matrix-table td:first-child {
    text-align: right;
    font-weight: 600;
    padding-right: 18.75px;
}

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

.matrix-status-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 13.98px;
    height: 13.98px;
}

.matrix-status-icon.checked {
    color: #00BC7D;
}

.matrix-status-icon.unchecked {
    color: #CAD5E2;
}

.matrix-status-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2.2px;
    fill: none;
}

@media (max-width: 992px) {
    .permissions-roles-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .permissions-bottom-grid {
        grid-template-columns: 1fr;
    }

    .permissions-card {
        height: auto;
        max-height: 440px;
    }
}

@media (max-width: 576px) {
    .permissions-roles-row {
        grid-template-columns: 1fr;
    }

    .permissions-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-add-user {
        width: 100%;
    }
}

/* ==========================================================================
   14. Settings Page Styling
   ========================================================================== */
.settings-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18.75px;
    gap: 18.75px;
    width: 100%;
    box-sizing: border-box;
}

.settings-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    align-self: stretch;
}

/* Tabs Bar */
.settings-tabs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 10px;
}

.settings-tabs-bar {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 3.75px;
    gap: 3.75px;
    background: rgba(13, 45, 94, 0.06);
    border-radius: 15.25px;
}

.settings-tab-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7.5px 15px;
    height: 30px;
    border-radius: 11.25px;
    border: none;
    background: transparent;
    color: #62748E;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.settings-tab-btn.active {
    background: #6DC424;
    color: #FFFFFF;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Tab Panels */
.settings-tab-panel {
    display: none;
    width: 100%;
}

.settings-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Grid Layouts */
.settings-institute-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18.75px;
    width: 100%;
}

.settings-academic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18.75px;
    width: 100%;
}

.settings-integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18.75px;
    width: 100%;
}

/* Settings Card */
.settings-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22.5px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    width: 100%;
}

.settings-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #162044;
    margin: 0 0 18.75px 0;
    position: relative;
    width: 100%;
    text-align: right;
}

.settings-card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Logo Upload Area */
.settings-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11.25px;
    width: 100%;
    padding-bottom: 10px;
}

.settings-logo-preview-wrapper {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0px 0px 0px 3px rgba(109, 196, 36, 0.3), 0px 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 15px;
    padding: 5.625px;
    box-sizing: border-box;
}

.settings-logo-preview {
    width: 78.75px;
    height: 78.75px;
    border-radius: 10px;
    object-fit: cover;
}

.settings-logo-edit-badge {
    position: absolute;
    width: 26.23px;
    height: 26.23px;
    left: -11.49px;
    top: 95.24px;
    background: #6DC424;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #FFFFFF;
}

.settings-logo-edit-badge svg {
    width: 12.99px;
    height: 12.99px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
}

.settings-logo-info-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #162044;
    text-align: center;
    margin: 0;
}

.settings-logo-info-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    color: #8AAACF;
    text-align: center;
    margin: 2px 0 0 0;
}

.settings-logo-upload-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7.5px 15px;
    gap: 7.5px;
    background: transparent;
    border: 1.27467px solid rgba(13, 45, 94, 0.2);
    border-radius: 11.25px;
    color: #1E3070;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.settings-logo-upload-btn:hover {
    background-color: rgba(13, 45, 94, 0.04);
}

.settings-logo-upload-btn svg {
    width: 12.99px;
    height: 12.99px;
    stroke: #1E3070;
    stroke-width: 2;
    fill: none;
}

/* Inputs styling */
.settings-input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3.75px;
    width: 100%;
}

.settings-input-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    color: #5A6E8C;
    text-align: right;
}

.settings-input-wrapper {
    position: relative;
    width: 100%;
}

.settings-input-icon {
    position: absolute;
    right: 11.25px;
    top: 50%;
    transform: translateY(-50%);
    width: 13.98px;
    height: 13.98px;
    color: #8AAACF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-input-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.settings-input {
    box-sizing: border-box;
    width: 100%;
    height: 36.27px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 11.25px;
    padding: 7.5px 11.25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 13.125px;
    color: #162044;
    text-align: right;
    background-color: #FFFFFF;
    transition: border-color 0.2s;
}

.settings-input:focus {
    outline: none;
    border-color: #1E3070;
}

.settings-input.has-icon {
    padding-right: 33.75px;
}

.settings-btn-save {
    width: 100%;
    height: 37.46px;
    background: #1E3070;
    border-radius: 11.25px;
    border: none;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13.125px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s;
}

.settings-btn-save:hover {
    opacity: 0.9;
}

/* Appearance Lang Toggle */
.settings-lang-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 3.75px;
    gap: 3.75px;
    background: rgba(13, 45, 94, 0.06);
    border-radius: 11.25px;
    width: 100%;
    box-sizing: border-box;
}

.settings-lang-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32.52px;
    border-radius: 11.25px;
    border: none;
    background: transparent;
    color: #62748E;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-lang-btn.active {
    background: #1E3070;
    color: #FFFFFF;
    border: 1.27467px solid #1E3070;
}

.settings-select {
    box-sizing: border-box;
    width: 100%;
    height: 41.75px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 11.25px;
    padding: 0 11.25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 13.125px;
    color: #162044;
    background: #FFFFFF;
    text-align: right;
}

/* Semester and active states */
.settings-semester-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 7.5px 11.25px;
    background: #F4F7FB;
    border-radius: 11.25px;
    width: 100%;
    box-sizing: border-box;
}

.settings-semester-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    color: #162044;
}

.settings-semester-badge {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 1.875px 7.5px;
    gap: 3.75px;
    border-radius: 4.27707e+07px;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    font-weight: 400;
}

.settings-semester-badge.active {
    background: #ECFDF5;
    color: #007A55;
}

.settings-semester-badge.disabled {
    background: #F1F5F9;
    color: #90A1B9;
}

.settings-semester-badge svg {
    width: 12.99px;
    height: 12.99px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Educational Districts */
.settings-district-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 9.375px 11.25px;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 11.25px;
    width: 100%;
}

.settings-district-name-wrapper {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 7.5px;
}

.settings-district-bullet {
    width: 5.62px;
    height: 5.62px;
    background: #1E3070;
    border-radius: 50%;
}

.settings-district-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13.125px;
    color: #162044;
}

.settings-district-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3.75px;
}

.settings-btn-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3.75px;
    width: 19.49px;
    height: 19.49px;
    border-radius: 3.75px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.settings-btn-action.edit {
    color: #FE9A00;
}

.settings-btn-action.delete {
    color: #FF6467;
}

.settings-btn-action svg {
    width: 11.99px;
    height: 11.99px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.settings-btn-add-dashed {
    box-sizing: border-box;
    width: 100%;
    height: 32.52px;
    border: 1.27467px dashed rgba(13, 45, 94, 0.2);
    border-radius: 11.25px;
    background: transparent;
    color: #5A6E8C;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-btn-add-dashed:hover {
    background-color: rgba(13, 45, 94, 0.02);
}

.settings-stages-section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0px 0px;
    width: 100%;
    border-top: 1.27467px solid rgba(13, 45, 94, 0.08);
}

.settings-stages-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 7.5px;
    width: 100%;
    margin-top: 11.25px;
}

.settings-stage-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4.79px 11.23px;
    border-radius: 4.27707e+07px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
}

.settings-stage-badge.primary {
    background: #E8ECF8;
    color: #1E3070;
}

.settings-stage-badge.middle {
    background: #F3E8FF;
    color: #7E22CE;
}

.settings-stage-badge.secondary {
    background: #DCFCE7;
    color: #15803D;
}

/* Integrations cards */
.settings-integration-card {
    height: 160px;
    justify-content: space-between;
}

.settings-integration-top {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.settings-integration-brand {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 7.5px;
}

.settings-integration-status {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 1.875px 7.5px;
    gap: 3.75px;
    border-radius: 4.27707e+07px;
    background: #ECFDF5;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    font-weight: 600;
    color: #007A55;
}

.settings-integration-status-dot {
    width: 5.62px;
    height: 5.62px;
    background: #00BC7D;
    border-radius: 50%;
}

.settings-btn-options {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 29.99px;
    height: 29.99px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.18);
    box-shadow: 0px 2px 6px rgba(13, 45, 94, 0.1);
    border-radius: 11.25px;
    cursor: pointer;
    color: #5A6E8C;
}

.settings-btn-options svg {
    width: 12.99px;
    height: 12.99px;
    fill: currentColor;
}

.settings-integration-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37.48px;
    height: 37.48px;
    border-radius: 15.25px;
}

.settings-integration-icon.whatsapp {
    background: rgba(34, 134, 58, 0.094);
    color: #22863A;
}

.settings-integration-icon.cliq-gate {
    background: rgba(74, 93, 170, 0.094);
    color: #4A5DAA;
}

.settings-integration-icon.cliq {
    background: rgba(147, 51, 234, 0.094);
    color: #9333EA;
}

.settings-integration-icon.sms {
    background: rgba(109, 196, 36, 0.094);
    color: #6DC424;
}

.settings-integration-icon.email {
    background: rgba(224, 82, 82, 0.094);
    color: #E05252;
}

.settings-integration-icon.backup {
    background: rgba(90, 110, 140, 0.094);
    color: #5A6E8C;
}

.settings-integration-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.settings-integration-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
    text-align: right;
}

.settings-integration-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    color: #162044;
    margin: 0;
    width: 100%;
}

.settings-integration-subtitle {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    color: #5A6E8C;
    margin: 3px 0 0 0;
    width: 100%;
}

.settings-integration-footer {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    color: #8AAACF;
    margin-top: 7.5px;
    width: 100%;
}

/* General FadeIn Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Security Tab Styles */
.settings-security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18.75px;
    width: 100%;
}

.settings-security-item-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 15px;
    gap: 15px;
    width: 100%;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    background: #FFFFFF;
}

.settings-security-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 33.74px;
    height: 33.74px;
    background: #F0F4FB;
    border-radius: 11.25px;
    color: #1E3070;
    flex-shrink: 0;
}

.settings-security-icon-wrapper svg {
    width: 15.99px;
    height: 15.99px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.settings-security-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-grow: 1;
}

.settings-security-item-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.settings-security-item-desc {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin: 1.875px 0 0 0;
}

.settings-security-badge {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 3.75px 9.375px;
    gap: 3.75px;
    border-radius: 4.27707e+07px;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    white-space: nowrap;
}

.settings-security-badge.active {
    background: #ECFDF5;
    color: #007A55;
}

.settings-security-badge.disabled {
    background: #F1F5F9;
    color: #90A1B9;
}

.settings-security-badge svg {
    width: 13.98px;
    height: 13.98px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Password Policy Card */
.settings-pw-policy-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 11.25px 15px;
    background: #F4F7FB;
    border-radius: 15.25px;
    width: 100%;
}

.settings-pw-policy-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
    margin: 0;
}

.settings-pw-policy-values {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 7.5px;
}

.settings-pw-policy-value {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #1E3070;
}

.settings-pw-policy-edit-btn {
    border: none;
    background: transparent;
    color: #2B7FFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.settings-pw-policy-edit-btn:hover {
    opacity: 0.8;
}

/* Danger Zone Card */
.settings-danger-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 15px;
    background: #FEF2F2;
    border: 1.27467px solid #FEE2E2;
    border-radius: 15.25px;
    width: 100%;
    margin-top: 18.75px;
}

.settings-danger-header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 7.5px;
    width: 100%;
}

.settings-danger-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 11.25px;
    line-height: 15px;
    color: #C10007;
    margin: 0;
}

.settings-danger-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FB2C36;
    flex-shrink: 0;
}

.settings-danger-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.settings-danger-desc {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #E7000B;
    margin: 7.5px 0 11.25px 0;
    text-align: right;
    width: 100%;
}

.settings-danger-actions {
    display: flex;
    flex-direction: column;
    gap: 7.5px;
    width: 100%;
}

.settings-btn-danger-outline {
    box-sizing: border-box;
    border: 1.27467px solid #FFC9C9;
    border-radius: 11.25px;
    background: transparent;
    color: #E7000B;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    height: 32.52px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.settings-btn-danger-outline:hover {
    background: rgba(254, 226, 226, 0.5);
    border-color: #FB2C36;
}

/* Activity Log Styles */
.settings-audit-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18.75px;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
    width: 100%;
}

.settings-audit-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 13.125px;
    line-height: 19px;
    color: #162044;
    margin: 0;
}

.settings-audit-export-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 5.625px 11.25px;
    gap: 5.62px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 11.25px;
    background: transparent;
    color: #5A6E8C;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    height: 28.8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.settings-audit-export-btn:hover {
    background: rgba(13, 45, 94, 0.02);
}

.settings-audit-export-btn svg {
    width: 11.99px;
    height: 11.99px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.settings-audit-filters-bar {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 15px;
    gap: 11.25px;
    background: #F4F7FB;
    border-bottom: 1.27467px solid rgba(13, 45, 94, 0.08);
    width: 100%;
}

.settings-audit-dropdown {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 7.5px 11.25px;
    border: 1.27467px solid rgba(13, 45, 94, 0.15);
    border-radius: 11.25px;
    background: #FFFFFF;
    color: #5A6E8C;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    height: 37.92px;
    outline: none;
    cursor: pointer;
}

.settings-audit-search-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 7.5px 11.25px;
    gap: 7.5px;
    background: #FFFFFF;
    border: 1.27467px solid rgba(13, 45, 94, 0.12);
    border-radius: 11.25px;
    flex-grow: 1;
    height: 37.92px;
}

.settings-audit-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    font-size: 11.25px;
    color: #162044;
    text-align: right;
}

.settings-audit-search-input::placeholder {
    color: rgba(22, 32, 68, 0.5);
}

.settings-audit-search-wrapper svg {
    width: 12.99px;
    height: 12.99px;
    stroke: #8AAACF;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.settings-audit-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.settings-audit-row {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 11.25px 18.75px;
    gap: 15px;
    border-bottom: 1.27467px solid rgba(74, 93, 170, 0.12);
    width: 100%;
    transition: background-color 0.2s ease;
}

.settings-audit-row:hover {
    background-color: rgba(13, 45, 94, 0.01);
}

.settings-audit-row:last-child {
    border-bottom: none;
}

.settings-audit-time-ip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 110px;
}

.settings-audit-time {
    font-family: 'Consolas', monospace;
    font-size: 11.25px;
    line-height: 15px;
    color: #5A6E8C;
}

.settings-audit-ip {
    font-family: 'Consolas', monospace;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin-top: 1.875px;
}

.settings-audit-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-grow: 1;
}

.settings-audit-action {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 11.25px;
    line-height: 15px;
    color: #162044;
    margin: 0;
}

.settings-audit-user {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 11.25px;
    line-height: 15px;
    color: #8AAACF;
    margin-top: 1.875px;
}

.settings-audit-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26.23px;
    height: 26.23px;
    border-radius: 11.25px;
    flex-shrink: 0;
}

.settings-audit-icon-wrapper svg {
    width: 12.99px;
    height: 12.99px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Audit row color variations */
.settings-audit-row.log-in .settings-audit-icon-wrapper {
    background: #DBEAFE;
    color: #155DFC;
}

.settings-audit-row.add-item .settings-audit-icon-wrapper {
    background: #D0FAE5;
    color: #009966;
}

.settings-audit-row.update-item .settings-audit-icon-wrapper {
    background: #FEF3C6;
    color: #E17100;
}

.settings-audit-row.system-item .settings-audit-icon-wrapper {
    background: #EDE9FE;
    color: #7F22FE;
}

.settings-audit-row.export-item .settings-audit-icon-wrapper {
    background: #F1F5F9;
    color: #45556C;
}

@media (max-width: 1200px) {
    .settings-institute-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .settings-institute-grid {
        grid-template-columns: 1fr;
    }

    .settings-academic-grid {
        grid-template-columns: 1fr;
    }

    .settings-integrations-grid {
        grid-template-columns: 1fr;
    }

    .settings-security-grid {
        grid-template-columns: 1fr;
    }

    .settings-audit-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-audit-dropdown {
        width: 100%;
    }
}

/* ==========================================================================
   Admin Profile Page Specific Styles (Jahez Educational Center)
   ========================================================================== */

.profile-content {
    padding: 18.75px;
    display: flex;
    flex-direction: column;
    gap: 18.75px;
    max-width: 1170.38px;
    width: 100%;
    margin: 0 auto;
}

/* Banner Header Container */
.profile-banner-card {
    position: relative;
    width: 100%;
    min-height: 149.97px;
    background: linear-gradient(135deg, #0F1E48 0%, #1A2E6A 50%, #6DC424 100%);
    border-radius: 15px;
    padding: 24px 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 10px 30px rgba(15, 30, 72, 0.15);
}

.profile-banner-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(80.27% 606.39% at 80% 50%, #6DC424 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.profile-banner-right {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

/* Avatar section */
.profile-avatar-wrapper {
    position: relative;
    width: 89.98px;
    height: 89.98px;
    flex-shrink: 0;
}

.profile-avatar-box {
    width: 89.98px;
    height: 89.98px;
    background: #6DC424;
    box-shadow: 0px 0px 0px 4px rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 28.125px;
    line-height: 34px;
}

.profile-avatar-edit-btn {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 29.99px;
    height: 29.99px;
    left: -7.49px;
    top: 67.48px;
    background: #1E3070;
    border: 1.27px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.profile-avatar-edit-btn:hover {
    background: #2b4396;
    transform: scale(1.1);
}

.profile-avatar-edit-btn svg {
    width: 13.98px;
    height: 13.98px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
}

/* User identity in banner */
.profile-banner-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.profile-banner-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-banner-name {
    font-size: 22.5px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 30px;
}

.profile-banner-badge {
    background: #6DC424;
    border-radius: 42770700px;
    padding: 2px 10px;
    font-size: 11.25px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 15px;
}

.profile-banner-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

.profile-banner-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.125px;
    font-weight: 400;
    line-height: 19px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.profile-banner-meta-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.profile-banner-meta-item svg {
    width: 12.99px;
    height: 12.99px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1.5;
    fill: none;
}

/* Header Statistics Section */
.profile-banner-left {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 2;
}

.profile-header-stats {
    display: flex;
    align-items: center;
    gap: 22.5px;
}

.profile-header-stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header-stat-num {
    font-size: 22.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 30px;
    text-align: center;
}

.profile-header-stat-lbl {
    font-size: 11.25px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 15px;
    text-align: center;
    margin-top: 1.8px;
}

/* Edit profile button inside header banner */
.profile-banner-edit-action {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 7.5px 15px;
    gap: 7.5px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.27px solid rgba(255, 255, 255, 0.2);
    border-radius: 15.25px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 13.125px;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.profile-banner-edit-action:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-banner-edit-action svg {
    width: 15px;
    height: 15px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
}

/* Sub-header Navigation Tabs */
.profile-tabs-wrapper {
    display: flex;
    width: 100%;
}

.profile-tabs-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 3.75px;
    gap: 3.75px;
    background: rgba(13, 45, 94, 0.06);
    border-radius: 15.25px;
    flex-direction: row-reverse;
}

.profile-tab-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7.5px 15px;
    border-radius: 11.25px;
    font-size: 11.25px;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
    border: none;
    background: transparent;
    color: #62748E;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-tab-btn:hover {
    color: var(--primary-dark);
}

.profile-tab-btn.active {
    background: #6DC424;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
}

.profile-tab-btn.active:hover {
    color: #FFFFFF;
}

/* Columns Layout Grid */
.profile-grid-layout {
    display: grid;
    grid-template-columns: 365.15px 1fr;
    gap: 22.5px;
    width: 100%;
    direction: ltr;
}

/* Cards default style */
.profile-card {
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1.27px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    padding: 22.5px;
    display: flex;
    flex-direction: column;
    gap: 18.75px;
}

.profile-card-title {
    font-size: 13.125px;
    font-weight: 700;
    line-height: 19px;
    color: #162044;
}

/* Personal Info Card Fields */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 15px;
    column-gap: 15px;
}

.profile-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-field-label {
    font-size: 11.25px;
    font-weight: 600;
    color: #5A6E8C;
    line-height: 15px;
    text-align: right;
}

.profile-field-value-box {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    background: #F4F7FB;
    border-radius: 11.25px;
    padding: 7.5px 11.25px;
    font-size: 13.125px;
    font-weight: 400;
    line-height: 19px;
    color: #162044;
    border: 1.27px solid transparent;
    outline: none;
    text-align: right;
    transition: all var(--transition-fast);
}

.profile-field-value-box:disabled {
    background: #F4F7FB;
    color: #162044;
    cursor: not-allowed;
}

.profile-field-value-box:not(:disabled) {
    background: #FFFFFF;
    border-color: rgba(13, 45, 94, 0.15);
}

.profile-field-value-box:not(:disabled):focus {
    border-color: #6DC424;
    box-shadow: 0 0 0 2px rgba(109, 196, 36, 0.15);
}

/* Edit Controls footer in Right Column */
.profile-edit-actions-container {
    display: none;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding-top: 18.75px;
    gap: 11.25px;
    border-top: 1px solid rgba(13, 45, 94, 0.06);
}

.profile-edit-actions-container.active {
    display: flex;
}

.profile-btn-cancel {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 9.375px 18.75px;
    background: transparent;
    border: 1.27px solid rgba(13, 45, 94, 0.15);
    border-radius: 11.25px;
    font-size: 13.125px;
    font-weight: 600;
    color: #5A6E8C;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.profile-btn-cancel:hover {
    background: rgba(13, 45, 94, 0.04);
    border-color: rgba(13, 45, 94, 0.25);
}

.profile-btn-save {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 9.375px 18.75px;
    background: #1E3070;
    border: none;
    border-radius: 11.25px;
    font-size: 13.125px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.profile-btn-save:hover {
    background: #152252;
}

.profile-btn-save:active {
    transform: scale(0.98);
}

/* Stats left card styling */
.profile-stats-card {
    padding: 18.75px;
}

.profile-stats-list {
    display: flex;
    flex-direction: column;
    gap: 11.25px;
    margin-top: 15px;
}

.profile-stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.profile-stats-val {
    font-size: 13.125px;
    font-weight: 700;
    line-height: 19px;
    text-align: left;
}

.profile-stats-val.ops {
    color: #4A5DAA;
}

.profile-stats-val.notifications {
    color: #22863A;
}

.profile-stats-val.invoices {
    color: #6DC424;
}

.profile-stats-val.reports {
    color: #9333EA;
}

.profile-stats-lbl {
    font-size: 11.25px;
    font-weight: 400;
    color: #5A6E8C;
    line-height: 15px;
}

/* Permissions card styling */
.profile-perms-card {
    padding: 18.75px;
}

.profile-perms-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 11.25px;
    gap: 7.5px;
    background: linear-gradient(135deg, #162044 0%, #4A5DAA 100%);
    border-radius: 15.25px;
    color: #FFFFFF;
    margin-top: 11.25px;
}

.profile-perms-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.profile-perms-header-title {
    font-size: 11.25px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 15px;
}

.profile-perms-header-sub {
    font-size: 11.25px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 15px;
}

.profile-perms-header-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-perms-header-icon svg {
    width: 20px;
    height: 20px;
    stroke: #FFFFFF;
    stroke-width: 1.66px;
    fill: none;
}

/* Permissions List details */
.profile-perms-list {
    display: flex;
    flex-direction: column;
    gap: 5.625px;
    margin-top: 11.25px;
}

.profile-perms-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7.5px;
    padding: 5.625px 0px;
    width: 100%;
}

.profile-perms-text {
    font-size: 11.25px;
    font-weight: 400;
    color: #5A6E8C;
    line-height: 15px;
}

.profile-perms-icon {
    width: 12.99px;
    height: 12.99px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-perms-icon svg {
    width: 12.99px;
    height: 12.99px;
    stroke: #00BC7D;
    stroke-width: 1.08px;
    fill: none;
}

/* Other tabs placeholders */
.profile-tab-content-panel {
    display: none;
    width: 100%;
    animation: tabPaneFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-tab-content-panel.active {
    display: block;
}

@keyframes tabPaneFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive details for Profile Page */
@media (max-width: 1024px) {
    .profile-grid-layout {
        grid-template-columns: 1fr;
    }

    .profile-banner-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .profile-banner-left {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-banner-right {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-banner-info {
        align-items: center;
    }

    .profile-banner-left {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .profile-tabs-wrapper {
        justify-content: center;
    }
}

/* ==========================================================================
   Admin Profile - Security, Notifications, Activity Tabs (Figma Specs)
   ========================================================================== */

/* Security Tab Grid Layout */
.profile-security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18.75px;
    width: 100%;
}

@media (max-width: 992px) {
    .profile-security-grid {
        grid-template-columns: 1fr;
    }
}

/* Password Input with eye toggle */
.profile-password-input-wrapper {
    position: relative;
    width: 100%;
}

.profile-password-toggle-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8AAACF;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

.profile-password-toggle-btn:hover {
    color: #1E3070;
}

/* Password Requirements */
.password-requirements-box {
    background: #F0F4FB;
    border-radius: 11.25px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.password-requirements-title {
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 11.25px;
    color: #5A6E8C;
    margin-bottom: 10px;
    text-align: right;
}

.password-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.password-requirements-list li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cairo';
    font-size: 11.25px;
    color: #5A6E8C;
}

.req-icon {
    width: 12px;
    height: 12px;
}

.profile-btn-update-password {
    width: 100%;
    height: 40px;
    background: #1E3070;
    color: #FFFFFF;
    border: none;
    border-radius: 11.25px;
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 13.125px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.profile-btn-update-password:hover {
    background: #152250;
}

.profile-btn-update-password:active {
    transform: scale(0.99);
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.session-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    /* RTL match */
    align-items: center;
    justify-content: space-between;
    padding: 13.125px;
    border: 1.27467px solid rgba(13, 45, 94, 0.08);
    border-radius: 15.25px;
    background: #FFFFFF;
}

.session-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-icon {
    width: 30px;
    height: 30px;
    background: #E8ECF8;
    color: #1E3070;
    border-radius: 11.25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-icon.inactive {
    background: #F7F9FC;
    color: #8AAACF;
}

.session-center {
    flex: 1;
    text-align: right;
    padding-right: 12px;
}

.session-device {
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 11.25px;
    color: #162044;
    margin: 0 0 2px 0;
}

.session-meta {
    font-family: 'Cairo';
    font-weight: 400;
    font-size: 11.25px;
    color: #8AAACF;
}

.session-left {
    display: flex;
    align-items: center;
}

.session-badge.current {
    background: #ECFDF5;
    color: #007A55;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 11.25px;
}

.btn-session-terminate {
    background: transparent;
    border: none;
    color: #FB2C36;
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 11.25px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-session-terminate:hover {
    background: #FEE2E2;
}

.btn-terminate-all-sessions {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    background: transparent;
    color: #E05252;
    border: 1.27467px solid #FEE2E2;
    border-radius: 11.25px;
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 13.125px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
}

.btn-terminate-all-sessions:hover {
    background: #FFF5F5;
    border-color: #FCA5A5;
}

/* Notification Preferences Grid */
.notification-preferences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .notification-preferences-grid {
        grid-template-columns: 1fr;
    }
}

.notif-pref-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-pref-group-title {
    font-family: 'Cairo';
    font-weight: 700;
    font-size: 11.25px;
    color: #1E3070;
    margin: 0 0 4px 0;
    text-align: right;
}

.notif-pref-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9.375px 11.25px;
    background: #F4F7FB;
    border-radius: 15.25px;
}

.notif-pref-label {
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 11.25px;
    color: #162044;
}

.notif-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Cairo';
    font-weight: 400;
    font-size: 11.25px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.notif-badge:hover {
    opacity: 0.85;
}

.notif-badge.enabled {
    background: #ECFDF5;
    color: #007A55;
}

.notif-badge.disabled {
    background: #F1F5F9;
    color: #90A1B9;
}

.notif-pref-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.profile-btn-save-notif {
    width: 130px;
    height: 40px;
    background: #1E3070;
    color: #FFFFFF;
    border: none;
    border-radius: 11.25px;
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 13.125px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.profile-btn-save-notif:hover {
    background: #152250;
}

/* Activity Timeline */
.activity-timeline-wrapper {
    position: relative;
    padding-right: 30px;
    /* Space for the timeline line */
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

.activity-timeline-line {
    position: absolute;
    right: 15px;
    top: 10px;
    bottom: 10px;
    width: 1.5px;
    background: rgba(13, 45, 94, 0.08);
}

.activity-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-timeline-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.activity-item-content {
    flex: 1;
    text-align: right;
    padding-right: 15px;
}

.activity-item-title {
    font-family: 'Cairo';
    font-weight: 600;
    font-size: 13.125px;
    color: #162044;
    margin: 0 0 4px 0;
}

.activity-item-time {
    font-family: 'Cairo';
    font-weight: 400;
    font-size: 11.25px;
    color: #8AAACF;
}

.activity-item-icon-box {
    position: absolute;
    right: -30px;
    /* Aligns with timeline line */
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-sizing: border-box;
}

/* Student Clickable Link Style */
.student-avatar-cell.clickable {
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.student-avatar-cell.clickable:hover {
    opacity: 0.85;
    transform: translateX(-3px);
}

.student-avatar-cell.clickable:hover .student-name-text-small {
    text-decoration: underline;
    color: #1E3070;
}

/* Actions Dropdown Popover */
.actions-dropdown {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid rgba(13, 45, 94, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(13, 45, 94, 0.15);
    z-index: 2000;
    display: none;
    min-width: 140px;
    padding: 6px;
    flex-direction: column;
    gap: 2px;
    animation: dropdownFadeIn 0.2s ease-out;
}

.actions-dropdown.active {
    display: flex;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

.actions-dropdown-item:hover {
    background: rgba(13, 45, 94, 0.05);
}

.actions-dropdown-item.edit {
    color: #1E3070;
}

.actions-dropdown-item.activate {
    color: #007A55;
}

.actions-dropdown-item.suspend {
    color: #E7000B;
}

.actions-dropdown-item.dismiss {
    color: #475569;
}

/* Dismissed Status Badge */
.student-status-badge.dismissed {
    background: #F1F5F9;
    color: #475569;
}

/* Parent Clickable Link Style */
.parent-name-cell.clickable {
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.parent-name-cell.clickable:hover {
    opacity: 0.85;
    transform: translateX(-3px);
}

.parent-name-cell.clickable:hover .parent-name-txt {
    text-decoration: underline;
    color: #1E3070;
}

/* Teacher Clickable Link Style */
.teacher-card-profile.clickable {
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.teacher-card-profile.clickable:hover {
    opacity: 0.85;
    transform: translateX(-3px);
}

.teacher-card-profile.clickable:hover .teacher-card-name {
    text-decoration: underline;
    color: #1E3070;
}


/* ------------------ */

/* Pagination Style */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 20px 0 10px 0;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1E3070;
    background: #FFF;
    border: 1.5px solid #dde3f2;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination .page-item.active .page-link {
    background: #1E3070;
    color: #FFF;
    border-color: #1E3070;
}

.pagination .page-item.disabled .page-link {
    color: #A0AEC0;
    background: #EDF2F7;
    border-color: #E2E8F0;
    cursor: not-allowed;
}

.pagination .page-link:hover:not(.active):not(.disabled) {
    background: rgba(30, 48, 112, 0.05);
    border-color: #1E3070;
}