:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
    --sidebar-width: 280px;
}


@font-face {
    font-family: font_bold;
    src: url(../fonts/JF-Flat-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: font_bold;
}

select {
    font-family: font_bold;
}

body {
    font-family: font_bold;
    background-color: #f3f4f6;
    color: var(--text-color);
}

.logo-img {
    width: 100px;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

.form-control {
    padding: 6px;
}

/* Modern Creative Sidebar Design */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #11118d 0%, #1c3b8b 50%, #223041);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Modern Logo Section */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.logo-img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Modern Close Button */
.sidebar-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

.sidebar-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Modern Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.nav-item {
    margin: 0.5rem 1rem;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    transition: height 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.nav-item:hover::before {
    height: 100%;
}

/* Modern Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 86, 179, 0.2) 100%);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-link:hover i,
.nav-link.active i {
    transform: scale(1.1);
    color: #007bff;
}

.nav-link span {
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Modern Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown.active .dropdown-content {
    max-height: 1000px;
    animation: dropdownSlide 0.4s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Dropdown Links */
.dropdown-link {
    display: block;
    padding: 0.75rem 2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.2), transparent);
    transition: width 0.3s ease;
}

.dropdown-link:hover::before {
    width: 100%;
}

.dropdown-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #007bff;
    transform: translateX(5px);
}

/* Modern Dropdown Headers */
.dropdown-subheader {
    padding: 1rem 2rem 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-subheader i {
    font-size: 0.9rem;
    color: #007bff;
}

/* Modern Dropdown Dividers */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 0.5rem 2rem;
}

/* Modern Arrow Animation */
.arrow {
    margin-right: auto;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown.active .arrow {
    transform: rotate(180deg);
    color: #007bff;
}

/* Modern Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Modern Responsive Design */
@media (max-width: 1200px) {
    .sidebar {
        transform: translateX(100%);
        width: 300px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 320px;
    }
    
    .nav-link {
        padding: 1.2rem 1.5rem;
    }
    
    .dropdown-link {
        padding: 1rem 2rem;
    }
    
    .logo {
        padding: 1.5rem;
    }
    
    .logo-img {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .dropdown-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .logo-img {
        max-width: 80px;
    }
}

/* Modern Animation for Active States */
.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3) 0%, rgba(0, 86, 179, 0.3) 100%);
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.nav-link.active i {
    color: #007bff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Modern Hover Effects for Dropdown Items */
.dropdown-link:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.2);
}

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

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

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0056b3 0%, #004085 100%);
}

/* Modern Focus States for Accessibility */
.nav-link:focus,
.dropdown-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Modern Loading Animation for Sidebar */
.sidebar {
    animation: sidebarLoad 0.6s ease-out;
}

@keyframes sidebarLoad {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern Glass Morphism Effect */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Modern Icon Animations */
.nav-link i {
    position: relative;
    overflow: hidden;
}

.nav-link i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.nav-link:hover i::after {
    width: 30px;
    height: 30px;
}

/* Modern Dropdown Animation Enhancement */
.dropdown-content {
    transform-origin: top;
    animation: dropdownGrow 0.3s ease-out;
}

@keyframes dropdownGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Modern Active State Enhancement */
.nav-link.active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: activePulse 2s infinite;
}

@keyframes activePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
}

.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 2rem;
}

header {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    width: 300px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

section {
    display: none;
}

section.active {
    display: block;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.add-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.add-btn:hover {
    background-color: var(--secondary-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 500;
}

.action-btn {
    background-color: #f3f4f6;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.action-btn.edit {
    background-color: #eff6ff;
    color: #1e40af;
}

.action-btn.delete {
    background-color: #fef2f2;
    color: #dc2626;
}


/* Add to existing CSS */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-card #instructorChart {
    height: 300px !important;
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.trend.positive {
    color: #059669;
}

.trend.negative {
    color: #dc2626;
}

.trend.neutral {
    color: #6b7280;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.quick-stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.quick-stat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card .number {
    color: #007bff;
}

.stat-card .paid-status {
    font-size: 1rem;
    color: #555;
    margin: 0.5rem 0;
}

.table-container p {
    padding: 10px;
}


.quick-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.quick-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.name {
    font-weight: 500;
    color: var(--text-color);
}

.course,
.trainer {
    font-size: 0.875rem;
    color: #6b7280;
}

.date {
    font-size: 0.875rem;
    color: #6b7280;
}

.notification-badge {
    position: relative;
    margin-left: 1rem;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.5rem;
    text-align: center;
}



/* Add to existing CSS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.add-task-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.25rem;
}

/* Tasks Styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.task-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.task-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
}

.due-date {
    margin-left: auto;
    font-size: 0.875rem;
    color: #6b7280;
}

.due-date.urgent {
    color: #dc2626;
    font-weight: 500;
}

/* Alerts Styles */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

.alert-item.warning {
    background-color: #fff7ed;
    color: #c2410c;
}

.alert-item.info {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Schedule Styles */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.time {
    font-weight: 500;
    color: var(--text-color);
    min-width: 4rem;
}

.schedule-content {
    display: flex;
    flex-direction: column;
}

.schedule-content .title {
    font-weight: 500;
    color: var(--text-color);
}

.schedule-content .details {
    font-size: 0.875rem;
    color: #6b7280;
}

.status {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.status.active {
    background-color: #ecfdf5;
    color: #059669;
}

.status.upcoming {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Inventory Alerts Styles */
.inventory-alerts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

.inventory-item.low {
    background-color: #fff7ed;
    color: #c2410c;
}

.inventory-item.critical {
    background-color: #fef2f2;
    color: #dc2626;
}

.quantity {
    font-weight: 500;
}



/* Add to existing CSS */

/* Form Styles */
.section-content {
    padding: 2rem;
    display: none;
}

.section-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Table Styles */
.section-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-container {
    position: relative;
}

#typeFilter {
    padding: 7px;
}

.date-filter {
    margin-bottom: 10px;
}

.search-container input {
    padding: 0.75rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    width: 300px;
}

.search-container i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.table-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background-color: var(--primary-color);
    font-weight: 500;
    color: white;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.paid {
    background-color: #ecfdf5;
    color: #059669;
}

.status-badge.partial {
    background-color: #fffbeb;
    color: #d97706;
}

.status-badge.unpaid {
    background-color: #fef2f2;
    color: #dc2626;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 8px 12px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    background-color: var(--primary-color);
}

.btn-icon:hover {
    background-color: #0056b3;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.btn-page {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #374151;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-page:hover:not(:disabled) {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.btn-page.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

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

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}


/* Payment Summary Styles */
.payment-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.summary-card .amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.summary-card .trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.trend.positive {
    color: #059669;
}

.trend.negative {
    color: #dc2626;
}

.trend.neutral {
    color: #6b7280;
}

/* Invoice Form Styles */
.invoice-form .form-grid {
    grid-template-columns: repeat(2, 1fr);
}

#invoiceNumber {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* Payment Actions Styles */
.payment-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon.payment {
    color: #059669;
}

.btn-icon.print {
    color: #6b7280;
}

.btn-icon.reminder {
    color: #d97706;
}

/* Reminder Badge Styles */
.reminder-count {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modal Styles for Payment Recording */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #1f2937;
}

.filter-section {
    margin-bottom: 15px;
}



/* يمكنك إضافة أي أنماط إضافية هنا إذا لزم الأمر */
.status-badge.paid {
    background-color: #ecfdf5;
    color: #059669;
}

.status-badge.partial {
    background-color: #fffbeb;
    color: #d97706;
}

.status-badge.unpaid {
    background-color: #fef2f2;
    color: #dc2626;
}


.messages {
    margin-bottom: 20px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px;
    border-radius: 4px;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
    padding: 10px;
    border-radius: 4px;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    padding: 10px;
    border-radius: 4px;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px;
    border-radius: 4px;
}

/* أنماط إضافية للتقارير */
.report-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.report-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}



.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.form-group select {
    width: 100%;
}



/* تنسيق حقل نوع الطرف */
.recipient-type-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.recipient-type-container label {
    margin-left: 1rem;
    font-weight: bold;
}

.recipient-type-container select {
    width: 200px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}



/* Notification Dropdown */
.notification-badge {
    position: relative;
    cursor: pointer;
}

.notification-badge .badge {
    position: absolute;
    top: -5px;
    right: -20px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: -122px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    z-index: 1000;
}


.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

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

.notification-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.notification-item a:hover {
    background-color: #f8f9fa;
}

.notification-item span {
    font-size: 14px;
}

.notification-item .date {
    font-size: 12px;
    color: #666;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-close-btn {
    display: none;
    /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}


.form-control.phone-input {
    width: 100%;
}

.iti__country-list {
    text-align: right !important;
    left: 0 !important;
}

/* تنسيق العناوين الفرعية */
.dropdown-subheader {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    /* خط أزرق على الجانب لإبراز العنوان */
    margin: 5px 0;
}

/* تنسيق الفاصل (الخط الأفقي) */
.dropdown-divider {
    height: 1px;
    background-color: #ddd;
    margin: 8px 15px;
}

/* تحسين مظهر الروابط داخل القائمة المنسدلة */
.dropdown-content .dropdown-link {
    padding: 8px 20px;
    display: block;
    color: #fff;
    transition: background-color 0.2s;
}

.dropdown-content .dropdown-link:hover {
    background-color: #e9ecef;
}

.dropdown-subheader i {
    margin-left: 5px;
    color: var(--primary-color);
}

a {
    text-decoration: none;
}


.totals-section {
    margin-bottom: 20px;
}

.totals-section h3 {
    font-weight: bold;
    margin-bottom: 15px;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

/* Media Queries */
/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
        z-index: 1000;
    }

    .main-content {
        margin-right: 0;
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .payment-summary {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        /* Show hamburger in header on mobile */
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        right: 0;
    }

    .sidebar-close-btn {
        display: block;
        /* Show close button in sidebar */
    }

    .main-content {
        margin-right: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .payment-summary {
        grid-template-columns: 1fr;
    }

    .search-bar input {
        width: 100%;
        max-width: 250px;
    }

    .user-info {
        align-items: flex-start;
        gap: 0.5rem;
    }

    .notification-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }



    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 0;
        /* Remove min-width to allow wrapping */
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
        white-space: nowrap;
        /* Prevent excessive wrapping */
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .notification-dropdown {
        width: 250px;
        right: 0;
    }

    .section-header {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

}

@media (max-width: 699px) {
    .search-container i {
        top: 50;
    }

    .search-container input {
        width: 100%;

        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        padding: 0.75rem;
    }

    .logo h2 {
        font-size: 1.25rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .nav-link i {
        margin-left: 0.5rem;
    }

    .dropdown-content {
        padding-right: 1rem;
    }

    .dropdown-link {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .chart-card {
        padding: 1rem;
    }

    .quick-stat-card {
        padding: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .form-container {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .btn-icon {
        padding: 0.25rem 0.5rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .search-container i {
        top: 50%;
        transform: translateY(-50%);
    }

    .btn-page {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .section-content {
        padding: 0.5rem;
    }

    .search-container input {
        width: 100%;
    }

    .modal-content {
        width: 90%;
        padding: 1rem;
    }

    .modal-header {
        margin-bottom: 1rem;
    }

    .recipient-type-container select {
        width: 150px;
    }

    #revenueChart {
        width: 100% !important;
    }

    .button-group a,
    .button-group button {
        font-size: 11px;
        font-weight: bold;
    }
}

/* Filter Styles */
.filters-container {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 500;
}

.filter-group label i {
    margin-left: 0.5rem;
    color: #888;
}

.filter-group .form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-group .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.filter-group .action-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-group .btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group .action-buttons {
        flex-direction: column;
    }

    .filter-group .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Modern Islamic Design for Overview Page */
/* Islamic Background Pattern */
.islamic-background-overview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.islamic-pattern-overview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: pattern-move-overview 20s linear infinite;
}

.overlay-overview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

@keyframes pattern-move-overview {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Modern Dashboard Container */
.dashboard-modern {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: transparent;
}

/* Modern Stats Grid */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-card-modern h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card-modern h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
}

.stat-card-modern .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card-modern .paid-status {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0;
    font-weight: 500;
}

.stat-card-modern .trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.stat-card-modern .trend.positive {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.stat-card-modern .trend.negative {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.stat-card-modern .trend.neutral {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

/* Modern Charts Grid */
.charts-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.chart-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.chart-card-modern h3 {
    color: #007bff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

/* Modern Quick Stats Grid */
.quick-stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-stat-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.quick-stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.quick-stat-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.quick-stat-header-modern h3 {
    color: #007bff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.view-all-modern {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 123, 255, 0.1);
}

.view-all-modern:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.quick-stat-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-stat-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.quick-stat-item-modern:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.student-info-modern,
.course-info-modern,
.login-info-modern {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.name-modern {
    font-weight: 600;
    color: #007bff;
    font-size: 1rem;
}

.course-modern,
.trainer-modern {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.date-modern {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* Modern Filter Section */
.filter-section-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-section-modern .input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-section-modern .form-control {
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.filter-section-modern .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.filter-section-modern .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.filter-section-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Modern Schedule Items */
.schedule-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.schedule-item-modern:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.time-modern {
    font-weight: 600;
    color: #007bff;
    min-width: 4rem;
    font-size: 1.1rem;
}

.schedule-content-modern {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.schedule-content-modern .title {
    font-weight: 600;
    color: #007bff;
    font-size: 1rem;
}

.schedule-content-modern .details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.status-modern {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-modern.active {
    background: rgba(5, 150, 105, 0.2);
    color: #059669;
}

.status-modern.upcoming {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

/* Modern Alert Items */
.alerts-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.alert-item-modern.warning {
    background: rgba(220, 53, 69, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-item-modern.success {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-item-modern.info {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.alert-item-modern:hover {
    transform: translateX(5px);
}

/* Modern Features Grid */
.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.feature-header-modern h3 {
    color: #007bff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Animation for cards */
.stat-card-modern,
.chart-card-modern,
.quick-stat-card-modern,
.feature-card-modern {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat-card-modern:nth-child(1) { animation-delay: 0.1s; }
.stat-card-modern:nth-child(2) { animation-delay: 0.2s; }
.stat-card-modern:nth-child(3) { animation-delay: 0.3s; }
.stat-card-modern:nth-child(4) { animation-delay: 0.4s; }
.stat-card-modern:nth-child(5) { animation-delay: 0.5s; }
.stat-card-modern:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Modern Styles */
@media (max-width: 1200px) {
    .stats-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .charts-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .quick-stats-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .quick-stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .filter-section-modern .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-section-modern .form-control {
        width: 100%;
    }
    
    .stat-card-modern,
    .chart-card-modern,
    .quick-stat-card-modern,
    .feature-card-modern {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-card-modern,
    .chart-card-modern,
    .quick-stat-card-modern,
    .feature-card-modern {
        padding: 1rem;
    }
    
    .stat-card-modern .number {
        font-size: 2rem;
    }
    
    .quick-stat-header-modern {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Modern Islamic Design for Class Session Pages */
/* Islamic Background for Class Session Pages */
.islamic-background-class-session {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.islamic-pattern-class-session {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: pattern-move-class-session 20s linear infinite;
}

.overlay-class-session {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

@keyframes pattern-move-class-session {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Modern Class Session Container */
.class-session-modern {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: transparent;
}

/* Modern Form Container */
.form-container-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.section-header-modern h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Modern Form Grid */
.form-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group-modern.full-width {
    grid-column: span 2;
}

.form-group-modern label {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #007bff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group-modern label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
}

.form-group-modern input,
.form-group-modern select,
.form-group-modern textarea {
    padding: 1rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-family: inherit;
}

.form-group-modern input:focus,
.form-group-modern select:focus,
.form-group-modern textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.form-group-modern textarea {
    min-height: 120px;
    resize: vertical;
}

/* Modern Form Actions */
.form-actions-modern {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 123, 255, 0.1);
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary-modern {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.btn-secondary-modern:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

/* Modern Error Messages */
.error-modern {
    color: #dc2626;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-modern::before {
    content: '⚠️';
    font-size: 1rem;
}

/* Modern Filters Container */
.filters-container-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filters-row-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group-modern {
    flex: 1;
    min-width: 200px;
}

.filter-group-modern label {
    display: block;
    margin-bottom: 0.75rem;
    color: #007bff;
    font-weight: 600;
    font-size: 1rem;
}

.filter-group-modern label i {
    margin-left: 0.5rem;
    color: #007bff;
}

.filter-group-modern .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-group-modern .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.filter-group-modern .action-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-group-modern .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.filter-group-modern .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Modern Stats Container */
.stats-container-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 123, 255, 0.1);
}

.stat-box-modern {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-box-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-label-modern {
    font-size: 0.9rem;
    color: #007bff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

/* Modern Table Container */
.table-container-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

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

.data-table-modern th,
.data-table-modern td {
    padding: 1.25rem 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

.data-table-modern th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    font-weight: 600;
    color: white;
    font-size: 1rem;
    position: relative;
}

.data-table-modern th:last-child {
    border-radius: 0 20px 0 0;
}

.data-table-modern tr:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.data-table-modern tr.group-header {
    background: rgba(0, 123, 255, 0.1);
    font-weight: 700;
    color: #007bff;
}

.data-table-modern tr.group-header td {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

/* Modern Status Badge */
.status-badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-badge-modern.paid {
    background: rgba(5, 150, 105, 0.2);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.status-badge-modern.partial {
    background: rgba(217, 119, 6, 0.2);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.status-badge-modern.unpaid {
    background: rgba(220, 53, 69, 0.2);
    color: #dc2626;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Modern Actions */
.actions-modern {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-modern {
    padding: 0.5rem;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-icon-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-icon-modern.edit {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-icon-modern.delete {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Modern Pagination */
.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
}

.btn-page-modern {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #007bff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-page-modern:hover:not(:disabled) {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    transform: translateY(-2px);
}

.btn-page-modern.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-page-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modern Sort Icons */
.sort-icon-modern {
    margin-right: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.sort-icon-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sort-icon-modern i {
    transition: transform 0.3s ease;
}

.sort-icon-modern.active i {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem;
    border-radius: 4px;
}

/* Animation for form elements */
.form-group-modern {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group-modern:nth-child(1) { animation-delay: 0.1s; }
.form-group-modern:nth-child(2) { animation-delay: 0.2s; }
.form-group-modern:nth-child(3) { animation-delay: 0.3s; }
.form-group-modern:nth-child(4) { animation-delay: 0.4s; }
.form-group-modern:nth-child(5) { animation-delay: 0.5s; }
.form-group-modern:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design for Class Session Pages */
@media (max-width: 1200px) {
    .form-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .form-group-modern.full-width {
        grid-column: span 1;
    }
    
    .filters-row-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group-modern {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-container-modern {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .section-header-modern h2 {
        font-size: 1.5rem;
    }
    
    .form-actions-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .data-table-modern th,
    .data-table-modern td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .stats-container-modern {
        flex-direction: column;
    }
    
    .stat-box-modern {
        width: 100%;
    }
    
    /* Fix form input widths for mobile */
    .form-group-modern input,
    .form-group-modern select,
    .form-group-modern textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix Select2 dropdowns for mobile */
    .select2-container {
        width: 100% !important;
    }
    
    .select2-container .select2-selection--single {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .form-container-modern {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .section-header-modern {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .data-table-modern {
        font-size: 0.85rem;
    }
    
    .btn-icon-modern {
        padding: 0.25rem;
        font-size: 0.9rem;
    }
    
    /* Additional mobile fixes for very small screens */
    .form-group-modern input,
    .form-group-modern select,
    .form-group-modern textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure form containers don't overflow */
    .modern-container {
        padding: 0.5rem;
    }
    
    .form-container-modern {
        margin: 0.25rem;
        padding: 0.75rem;
    }
}

.instructor-summary, .student-summary , .family-summary{
    padding: 10px;
}

/* Modern Islamic Design for Scheduled Classes Pages */
/* Islamic Background for Scheduled Classes Pages */
.islamic-background-scheduled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.islamic-pattern-scheduled {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: pattern-move-scheduled 20s linear infinite;
}

.overlay-scheduled {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

@keyframes pattern-move-scheduled {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Modern Scheduled Classes Container */
.scheduled-classes-modern {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: transparent;
}

/* Modern Custom Modal */
.custom-modal-modern {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.custom-modal-content-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.custom-modal-header-modern h5 {
    color: #007bff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.custom-modal-close-modern {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-modal-close-modern:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.custom-modal-body-modern {
    margin-bottom: 1.5rem;
}

.custom-modal-body-modern p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.custom-modal-footer-modern {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.custom-modal-footer-modern .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-modal-footer-modern .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.custom-modal-footer-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.custom-modal-footer-modern .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.custom-modal-footer-modern .btn-secondary:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

/* Status Badge for Scheduled Classes */
.status-badge-modern.scheduled {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.status-badge-modern.completed {
    background: rgba(5, 150, 105, 0.2);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.status-badge-modern.cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #dc2626;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Complete Button Special Styling */
.btn-icon-modern.complete {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-icon-modern.complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

/* Responsive Design for Scheduled Classes Pages */
@media (max-width: 768px) {
    .custom-modal-content-modern {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .custom-modal-header-modern h5 {
        font-size: 1.1rem;
    }
    
    .custom-modal-footer-modern {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .custom-modal-footer-modern .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .custom-modal-content-modern {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .custom-modal-header-modern {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Unified Modern Islamic Design for All Pages */
/* Islamic Background Pattern - Universal */
.islamic-background-universal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.islamic-pattern-universal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: pattern-move-universal 20s linear infinite;
}

.overlay-universal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

@keyframes pattern-move-universal {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Universal Modern Container */
.modern-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
}

/* Universal Modern Section Header */
.section-header-universal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.section-header-universal h2,
.section-header-universal h3, 
.section-header-universal span {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.section-header-universal span{
    color:#007bff;
}

.section-header-universal h3 {
    font-size: 1.5rem;
}

/* Universal Modern Form Container */
.form-container-universal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Universal Modern Form Grid */
.form-grid-universal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group-universal {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group-universal.full-width {
    grid-column: span 2;
}

.form-group-universal label {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #007bff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group-universal label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
}

.form-group-universal input,
.form-group-universal select,
.form-group-universal textarea {
    padding: 1rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-family: inherit;
}

.form-group-universal input:focus,
.form-group-universal select:focus,
.form-group-universal textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.form-group-universal textarea {
    min-height: 120px;
    resize: vertical;
}

/* Universal Modern Form Actions */
.form-actions-universal {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 123, 255, 0.1);
}

/* Universal Modern Buttons */
.btn-universal {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary-universal {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary-universal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-secondary-universal {
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.btn-secondary-universal:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm-universal {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Universal Modern Error Messages */
.error-universal {
    color: #dc2626;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-universal::before {
    content: '⚠️';
    font-size: 1rem;
}

/* Universal Modern Filters Container */
.filters-container-universal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filters-row-universal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group-universal {
    flex: 1;
    min-width: 200px;
}

.filter-group-universal label {
    display: block;
    margin-bottom: 0.75rem;
    color: #007bff;
    font-weight: 600;
    font-size: 1rem;
}

.filter-group-universal label i {
    margin-left: 0.5rem;
    color: #007bff;
}

.filter-group-universal .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-group-universal .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.filter-group-universal .action-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-group-universal .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.filter-group-universal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Universal Modern Table Container */
.table-container-universal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

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

.data-table-universal th,
.data-table-universal td {
    padding: 1.25rem 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

.data-table-universal th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    font-weight: 600;
    color: white;
    font-size: 1rem;
    position: relative;
}



.data-table-universal tr:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.data-table-universal tr.group-header {
    background: rgba(0, 123, 255, 0.1);
    font-weight: 700;
    color: #007bff;
}

.data-table-universal tr.group-header td {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

/* Universal Modern Status Badge */
.status-badge-universal {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-badge-universal.paid,
.status-badge-universal.active,
.status-badge-universal.completed {
    background: rgba(5, 150, 105, 0.2);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.status-badge-universal.partial {
    background: rgba(217, 119, 6, 0.2);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.status-badge-universal.unpaid,
.status-badge-universal.inactive,
.status-badge-universal.cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #dc2626;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-badge-universal.scheduled {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Universal Modern Actions */
.actions-universal {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-universal {
    padding: 0.5rem;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-icon-universal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-icon-universal.edit {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-icon-universal.delete {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-icon-universal.complete {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-icon-universal.view {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.btn-icon-universal.users {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.btn-icon-universal.toggle {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-icon-universal.invoice {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-icon-universal.book {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Universal Modern Pagination */
.pagination-universal {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
}

.btn-page-universal {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #007bff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-page-universal:hover:not(:disabled) {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    transform: translateY(-2px);
}

.btn-page-universal.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-page-universal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Universal Modern Sort Icons */
.sort-icon-universal {
    margin-right: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.sort-icon-universal:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sort-icon-universal i {
    transition: transform 0.3s ease;
}

.sort-icon-universal.active i {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem;
    border-radius: 4px;
}

/* Universal Modern Stats Grid */
.stats-grid-universal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-universal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-universal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stat-card-universal:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-card-universal h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card-universal h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
}

.stat-card-universal p {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Universal Modern Section Actions */
.section-actions-universal {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #fff;
}

/* Universal Modern Search Container */
.search-container-universal {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container-universal input {
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 300px;
}

.search-container-universal input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.search-container-universal i {
    position: absolute;
    right: 1rem;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container-universal i:hover {
    color: #0056b3;
    transform: scale(1.1);
}

/* Animation for all elements */
.form-group-universal,
.stat-card-universal {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group-universal:nth-child(1) { animation-delay: 0.1s; }
.form-group-universal:nth-child(2) { animation-delay: 0.2s; }
.form-group-universal:nth-child(3) { animation-delay: 0.3s; }
.form-group-universal:nth-child(4) { animation-delay: 0.4s; }
.form-group-universal:nth-child(5) { animation-delay: 0.5s; }
.form-group-universal:nth-child(6) { animation-delay: 0.6s; }

.stat-card-universal:nth-child(1) { animation-delay: 0.1s; }
.stat-card-universal:nth-child(2) { animation-delay: 0.2s; }
.stat-card-universal:nth-child(3) { animation-delay: 0.3s; }
.stat-card-universal:nth-child(4) { animation-delay: 0.4s; }
.stat-card-universal:nth-child(5) { animation-delay: 0.5s; }
.stat-card-universal:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design for Universal Styles */
@media (max-width: 1200px) {
    .form-grid-universal {
        grid-template-columns: 1fr;
    }
    
    .form-group-universal.full-width {
        grid-column: span 1;
    }
    
    .filters-row-universal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group-universal {
        width: 100%;
    }
    
    .stats-grid-universal {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .form-container-universal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .section-header-universal h2 {
        font-size: 1.5rem;
    }
    
    .form-actions-universal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-universal {
        width: 100%;
        justify-content: center;
    }
    
    .data-table-universal th,
    .data-table-universal td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .stats-grid-universal {
        grid-template-columns: 1fr;
    }
    
    .search-container-universal input {
        width: 100%;
    }
    
    .section-actions-universal {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Fix form input widths for mobile */
    .form-group-universal input,
    .form-group-universal select,
    .form-group-universal textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix Select2 dropdowns for mobile */
    .select2-container {
        width: 100% !important;
    }
    
    .select2-container .select2-selection--single {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .form-container-universal {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .section-header-universal {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .data-table-universal {
        font-size: 0.85rem;
    }
    
    .btn-icon-universal {
        padding: 0.25rem;
        font-size: 0.9rem;
    }
    
    /* Additional mobile fixes for very small screens */
    .form-group-universal input,
    .form-group-universal select,
    .form-group-universal textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure form containers don't overflow */
    .modern-container {
        padding: 0.5rem;
    }
    
    .form-container-universal {
        margin: 0.25rem;
        padding: 0.75rem;
    }
}

/* Modern Table Styles for Class Session List */
.modern-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.modern-table thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.modern-table th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.modern-table tbody tr:hover {
    background: #f8f9fa;
}

/* Group Header Styles */
.group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
}

.group-header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #007bff;
    padding: 0.5rem 0;
}

.group-header-content i {
    color: #0056b3;
}

/* Cell Content Styles */
.instructor-name,
.family-name,
.student-name {
    font-weight: 500;
    color: #333;
}

.session-date,
.created-date {
    color: #666;
    font-size: 0.9rem;
}

.subject-name {
    font-weight: 500;
    color: #007bff;
}

.duration {
    color: #666;
    font-size: 0.9rem;
}

.notes {
    color: #666;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Evaluation Badge Styles */
.evaluation-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.evaluation-badge.high {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.evaluation-badge.medium {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.evaluation-badge.low {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

/* Notes Text Styles */
.notes-text {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 200px;
    word-wrap: break-word;
}

.no-notes {
    color: #6c757d;
    font-style: italic;
    font-size: 0.85rem;
}

/* Action Buttons */
.actions-cell {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    transform: scale(1.1);
}

.edit-btn {
    background: #ffc107;
}

.delete-btn {
    background: #dc3545;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 1.5rem;
}

.empty-message {
    text-align: center;
    padding: 2rem;
}

/* Responsive Design for Modern Table */
@media (max-width: 768px) {
    .modern-table {
        font-size: 0.9rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 0.75rem 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }

    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .notes {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .modern-table {
        font-size: 0.8rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 0.5rem 0.25rem;
    }

    .evaluation-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .group-header-content {
        font-size: 0.9rem;
    }
}

/* Cell Content Styles */
.session-number {
    font-weight: 600;
    color: #007bff;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    min-width: 40px;
}

.instructor-name,
.family-name,
.student-name {
    font-weight: 500;
    color: #333;
}

/* Additional Modern Table Styles for Scheduled Classes and Instructor List */

/* Session Number Styles */
.session-number,
.instructor-number {
    font-weight: 600;
    color: #007bff;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    min-width: 40px;
}

/* Session Time Styles */
.session-time {
    color: #666;
    font-size: 0.9rem;
    font-family: monospace;
}

/* Status Badge Styles for Scheduled Classes */
.status-badge.scheduled {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.status-badge.completed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-badge.cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

/* Completion Button Styles */
.completion-cell {
    text-align: center;
}

.complete-btn {
    background: #28a745;
    color: white;
}

.complete-btn:hover {
    background: #218838;
    transform: scale(1.1);
}

/* Instructor List Specific Styles */
.qualification {
    color: #666;
    font-size: 0.9rem;
}

.phone-number {
    font-family: monospace;
    color: #007bff;
    font-weight: 500;
}

.salary-ar,
.salary-en {
    color: #28a745;
    font-weight: 600;
    text-align: center;
}

.manager-name {
    color: #666;
    font-size: 0.9rem;
}

.status-cell {
    text-align: center;
}

.toggle-btn {
    background: #6c757d;
    color: white;
}

.toggle-btn:hover {
    background: #5a6268;
    transform: scale(1.1);
}

.invoice-cell {
    text-align: center;
}

.invoice-btn {
    background: #17a2b8;
    color: white;
}

.invoice-btn:hover {
    background: #138496;
    transform: scale(1.1);
}

.no-invoice {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

.users-btn {
    background: #6f42c1;
    color: white;
}

.users-btn:hover {
    background: #5a32a3;
    transform: scale(1.1);
}

/* Responsive Design for Additional Elements */
@media (max-width: 768px) {
    .session-time,
    .phone-number {
        font-size: 0.8rem;
    }

    .salary-ar,
    .salary-en {
        font-size: 0.8rem;
    }

    .qualification,
    .manager-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .session-number,
    .instructor-number {
        min-width: 30px;
        font-size: 0.8rem;
    }

    .session-time,
    .phone-number {
        font-size: 0.7rem;
    }

    .salary-ar,
    .salary-en {
        font-size: 0.7rem;
    }
}

/* Family and Student List Specific Styles */

/* Family List Styles */
.family-number,
.student-number {
    font-weight: 600;
    color: #007bff;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    min-width: 40px;
}

.family-name,
.student-name {
    font-weight: 500;
    color: #333;
}

.email-address {
    color: #666;
    font-size: 0.9rem;
}

.no-email {
    color: #999;
    font-style: italic;
}

.students-count,
.class-count {
    color: #28a745;
    font-weight: 600;
    text-align: center;
}

.gender {
    color: #666;
    font-size: 0.9rem;
}

.age {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.hourly-salary {
    color: #28a745;
    font-weight: 600;
    text-align: center;
}

/* Book Button for Study Plans */
.book-btn {
    background: #fd7e14;
    color: white;
}

.book-btn:hover {
    background: #e55a00;
    transform: scale(1.1);
}

/* View Button for Class Sessions */
.view-btn {
    background: #17a2b8;
    color: white;
}

.view-btn:hover {
    background: #138496;
    transform: scale(1.1);
}

/* Responsive Design for Family and Student Lists */
@media (max-width: 768px) {
    .email-address,
    .gender,
    .age {
        font-size: 0.8rem;
    }

    .students-count,
    .class-count,
    .hourly-salary {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .family-number,
    .student-number {
        min-width: 30px;
        font-size: 0.8rem;
    }

    .email-address,
    .gender,
    .age {
        font-size: 0.7rem;
    }

    .students-count,
    .class-count,
    .hourly-salary {
        font-size: 0.7rem;
    }
}

/* Marketer and Manager List Specific Styles */

/* Marketer List Styles */
.marketer-number,
.manager-number {
    font-weight: 600;
    color: #007bff;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    min-width: 40px;
}

.marketer-name,
.manager-name {
    font-weight: 500;
    color: #333;
}

.commission-rate {
    color: #fd7e14;
    font-weight: 600;
    text-align: center;
}

.address {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design for Marketer and Manager Lists */
@media (max-width: 768px) {
    .address {
        font-size: 0.8rem;
    }

    .commission-rate {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .marketer-number,
    .manager-number {
        min-width: 30px;
        font-size: 0.8rem;
    }

    .address {
        font-size: 0.7rem;
    }

    .commission-rate {
        font-size: 0.7rem;
    }
}

/* Instructor Students, Marketer Student, and Family Balance List Styles */

/* Relation Number Styles */
.relation-number,
.balance-number {
    font-weight: 600;
    color: #007bff;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    min-width: 40px;
}

/* Nationality Badge Styles */
.nationality-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.nationality-badge.foreign {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.nationality-badge.arab {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Amount Styles */
.amount {
    color: #28a745;
    font-weight: 600;
    text-align: center;
}

.balance-date {
    color: #666;
    font-size: 0.9rem;
}

.notes {
    color: #666;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Deduct Button Styles */
.deduct-btn {
    background: #fd7e14;
    color: white;
}

.deduct-btn:hover {
    background: #e55a00;
    transform: scale(1.1);
}

.deduct-cell {
    text-align: center;
}

/* Responsive Design for Additional Tables */
@media (max-width: 768px) {
    .notes {
        max-width: 150px;
        font-size: 0.8rem;
    }

    .amount {
        font-size: 0.8rem;
    }

    .balance-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .relation-number,
    .balance-number {
        min-width: 30px;
        font-size: 0.8rem;
    }

    .notes {
        max-width: 100px;
        font-size: 0.7rem;
    }

    .amount {
        font-size: 0.7rem;
    }

    .balance-date {
        font-size: 0.7rem;
    }

    .nationality-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Instructor Advance List, Permission Management, and Tax List Styles */

/* Advance Number Styles */
.advance-number,
.tax-number {
    font-weight: 600;
    color: #007bff;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    min-width: 40px;
}

/* Amount Styles */
.total-amount,
.deducted-amount,
.remaining-amount {
    color: #28a745;
    font-weight: 600;
    text-align: center;
}

.deducted-amount {
    color: #fd7e14;
}

.remaining-amount {
    color: #007bff;
}

.advance-date,
.deduction-date {
    color: #666;
    font-size: 0.9rem;
}

.no-date {
    color: #999;
    font-style: italic;
}

.reason {
    color: #666;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Deduction Status Badge Styles */
.deduction-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.deduction-status-badge.deducted {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.deduction-status-badge.partial {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.deduction-status-badge.pending {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Tax Percentage Styles */
.tax-percentage {
    color: #dc3545;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

/* Permission Management Styles */
.section-name {
    font-weight: 600;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem;
}

.permission-cell {
    padding: 1rem;
    vertical-align: top;
}

.permission-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.permission-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.permission-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.permission-label:hover {
    background: rgba(0, 123, 255, 0.1);
}

.permission-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

.permission-text {
    color: #333;
    font-weight: 500;
}

/* Responsive Design for Additional Tables */
@media (max-width: 768px) {
    .reason {
        max-width: 150px;
        font-size: 0.8rem;
    }

    .total-amount,
    .deducted-amount,
    .remaining-amount {
        font-size: 0.8rem;
    }

    .advance-date,
    .deduction-date {
        font-size: 0.8rem;
    }

    .tax-percentage {
        font-size: 1rem;
    }

    .permission-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .advance-number,
    .tax-number {
        min-width: 30px;
        font-size: 0.8rem;
    }

    .reason {
        max-width: 100px;
        font-size: 0.7rem;
    }

    .total-amount,
    .deducted-amount,
    .remaining-amount {
        font-size: 0.7rem;
    }

    .advance-date,
    .deduction-date {
        font-size: 0.7rem;
    }

    .tax-percentage {
        font-size: 0.9rem;
    }

    .deduction-status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .permission-label {
        font-size: 0.7rem;
    }

    .permission-label input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* Invoice List Styles */

/* Invoice Number Styles */
.invoice-number,
.month-number {
    font-weight: 600;
    color: #007bff;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    min-width: 40px;
}

/* Invoice Amount Styles */
.invoice-amount,
.total-amount {
    color: #28a745;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

/* Session Count Styles */
.session-count,
.invoice-count,
.family-count {
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

/* Month Name Styles */
.month-name {
    color: #007bff;
    font-weight: 600;
    font-size: 1rem;
}

/* Invoice Status Badge Styles */
.invoice-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    text-align: center;
}

.invoice-status-badge.paid {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.invoice-status-badge.unpaid {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.invoice-status-badge.pending {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

/* Phone Number Styles */
.phone-number {
    color: #666;
    font-size: 0.9rem;
    direction: ltr;
    text-align: center;
}

/* Responsive Design for Invoice Tables */
@media (max-width: 768px) {
    .invoice-amount,
    .total-amount {
        font-size: 1rem;
    }

    .month-name {
        font-size: 0.9rem;
    }

    .phone-number {
        font-size: 0.8rem;
    }

    .session-count,
    .invoice-count,
    .family-count {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    .invoice-status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .invoice-number,
    .month-number {
        min-width: 30px;
        font-size: 0.8rem;
    }

    .invoice-amount,
    .total-amount {
        font-size: 0.9rem;
    }

    .month-name {
        font-size: 0.8rem;
    }

    .phone-number {
        font-size: 0.7rem;
    }

    .session-count,
    .invoice-count,
    .family-count {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }

    .invoice-status-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Modern Financial Report Styles */
.calendar-container-modern {
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.header-section-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eef2f7;
    padding-bottom: 1.5rem;
}

.page-title-modern {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #4f46e5 0%, #06b6d4 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.stat-card-modern:hover::before {
    opacity: 1;
}

.badge-soft {
    padding: 0.35em 0.8em;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.financial-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.detail-item:hover {
    background-color: #f8fafc;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.detail-value {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.text-success-custom {
    color: #059669;
}

.text-danger-custom {
    color: #dc2626;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state-modern {
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    padding: 3rem;
}

.empty-icon {
    background-color: #e2e8f0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Custom Scrollbar for container if needed */
.calendar-container-modern::-webkit-scrollbar {
    width: 8px;
}

.calendar-container-modern::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.calendar-container-modern::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.calendar-container-modern::-webkit-scrollbar-thumb:hover {
    background: #555;
}
