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

/* ============================================
   Global Styles
   ============================================ */
body {
    font-family: font_regular;
    direction: rtl;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* ============================================
   Landing Page Styles
   ============================================ */
.landing-page {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    min-height: 100vh;
    padding: 20px;
}

.landing-logo {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.landing-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.landing-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
}

.feature-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.feature-box p {
    color: white;
    font-weight: bold;
    margin: 0;
}

.quick-links h5 {
    color: white;
}

.quick-links .btn {
    border-width: 2px;
}

.quick-links .btn-outline-primary,
.quick-links .btn-outline-secondary,
.quick-links .btn-outline-success,
.quick-links .btn-outline-warning,
.quick-links .btn-outline-info {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.quick-links .btn:hover {
    background: white;
    border-color: white;
    color: #1e88e5;
}

/* ============================================
   Login Page Styles
   ============================================ */
.login-page {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    min-height: 100vh;
}

.login-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.login-title {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.8rem;
    margin-top: 10px;
}

.logo-placeholder {
    display: inline-block;
}

.login-form .input-group-text {
    background-color: #f8f9fa;
    border-left: none;
    font-size: 1.2rem;
}

.login-form .form-control {
    border-right: none;
    padding: 12px 15px;
    font-size: 1rem;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.login-form .input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}

.login-form .input-group:focus-within .form-control {
    border-color: #86b7fe;
}

.forgot-password {
    color: #1e88e5;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1565c0;
}

.btn-primary {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border: none;
    padding: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.4);
}

/* ============================================
   Dashboard Styles
   ============================================ */
.dashboard-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Filter Card */
.filter-card {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.filter-card h5 {
    color: #2c3e50;
    font-weight: bold;
    margin: 0;
}

.filter-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-card .form-select:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.15);
}

.filter-card .btn-primary {
    padding: 10px 30px;
    font-size: 1rem;
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    color: white;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.sidebar-header h3 {
    font-size: 1.5rem;
    margin: 10px 0 5px 0;
    font-weight: bold;
}

.sidebar-header p {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    border-right-color: #1e88e5;
    padding-right: 30px;
}

.sidebar-menu a i,
.sidebar-menu a span.icon {
    margin-left: 10px;
    font-size: 1.1rem;
}

/* Sidebar Dropdown Styles */
.sidebar-menu .menu-section > a.dropdown-toggle {
    position: relative;
    padding-left: 40px;
}

.sidebar-menu .dropdown-toggle .arrow {
    position: absolute;
    left: 15px;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.sidebar-menu .dropdown-toggle:not(.collapsed) .arrow {
    transform: rotate(180deg);
}

.sidebar-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-menu .submenu li {
    margin: 0;
}

.sidebar-menu .submenu a {
    padding: 12px 25px 12px 50px;
    font-size: 0.95rem;
    border-right: none;
}

.sidebar-menu .submenu a:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-right: 55px;
    border-right-color: transparent;
}

/* Main Content Area */
.main-content {
    margin-right: 250px;
    padding: 30px;
}

/* Top Navigation Bar */
.top-navbar {
    background: white;
    padding: 15px 30px;
    margin: -30px -30px 30px -30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 0;
}

.top-navbar h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: bold;
}

.top-navbar .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-navbar .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Stats Cards */
.stats-card {
    border: none;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stats-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.stats-card.revenue .icon-wrapper {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}

.stats-card.expenses .icon-wrapper {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-card.students .icon-wrapper {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-card.teachers .icon-wrapper {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stats-card.families .icon-wrapper {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stats-card.growth .icon-wrapper {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.stats-card h6 {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: normal;
    margin-bottom: 10px;
}

.stats-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: bold;
    margin: 0;
}

.stats-card .change {
    font-size: 0.85rem;
    margin-top: 10px;
}

.stats-card .change.positive {
    color: #27ae60;
}

.stats-card .change.negative {
    color: #e74c3c;
}

/* Chart Cards */
.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.chart-card h5 {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

/* Tables */
.table-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.table-card-fixed {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-card-fixed .table-responsive {
    flex: 1;
}

.table-card h5 {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 20px;
}

.table {
    margin-bottom: 0;
}

.table-compact thead th {
    font-size: 0.9rem;
    padding: 12px 10px;
}

.table-compact tbody td {
    font-size: 0.9rem;
    padding: 14px 10px;
}

.table thead {
    background-color: #f8f9fa;
}

.table thead th {
    border: none;
    color: #2c3e50;
    font-weight: bold;
    padding: 15px;
    white-space: nowrap;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #ecf0f1;
}

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

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

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

.badge {
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
}

.table-compact .badge {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* Alerts Section */
.alerts-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alerts-section h5 {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 20px;
}

.alert-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-right: 4px solid;
    background-color: #f8f9fa;
}

.alert-item:last-child {
    margin-bottom: 0;
}

.alert-item.warning {
    border-right-color: #f39c12;
    background-color: #fef5e7;
}

.alert-item.success {
    border-right-color: #27ae60;
    background-color: #eafaf1;
}

.alert-item.info {
    border-right-color: #3498db;
    background-color: #ebf5fb;
}

.alert-item p {
    margin: 0;
    color: #2c3e50;
}

.alert-item small {
    color: #7f8c8d;
}

/* Summary Section */
.summary-card {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.summary-card h5 {
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.summary-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.summary-item h6 {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: normal;
}

.summary-item p {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* ============================================
   Family Dashboard Styles
   ============================================ */

/* Family Info Card */
.family-info-card {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3);
}

.family-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.family-stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.family-stat-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.family-stat-box .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.family-stat-box h6 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.family-stat-box p {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}

/* Student Cards */
.student-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.student-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.student-info h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-weight: bold;
}

.student-info p {
    margin: 0;
    color: #7f8c8d;
}

.student-body {
    padding: 20px;
}

/* Student Detail Page */
.student-detail-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.student-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3);
}

.student-detail-info p {
    margin-bottom: 10px;
    color: #2c3e50;
}

.info-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    height: 100%;
}

.info-box h6 {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.info-box h4 {
    color: #2c3e50;
    font-weight: bold;
    margin: 0;
}

/* Rating List */
.rating-list {
    max-height: 300px;
    overflow-y: auto;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s ease;
}

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

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

/* Download Report Card */
.download-report-card {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 20px rgba(67, 233, 123, 0.3);
}

.download-report-card h4 {
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

.download-report-card p {
    color: rgba(255, 255, 255, 0.95);
}

.download-report-card .btn-danger {
    background: white;
    color: #e74c3c;
    border: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-report-card .btn-danger:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

/* ============================================
   Students Management Styles
   ============================================ */

/* Page Header Card */
.page-header-card {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-header-card h2 {
    color: #2c3e50;
    font-weight: bold;
    margin: 0;
}

/* Student Avatar Small */
.student-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid #ecf0f1;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e88e5;
    display: inline-block;
}

/* Status Options */
.status-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.status-label:hover {
    border-color: #1e88e5;
    background: #f8f9fa;
}

.status-label .icon {
    font-size: 1.3rem;
}

.form-check-input:checked + .status-label {
    border-color: #1e88e5;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
}

.form-check-input:checked + .status-label.active {
    border-color: #27ae60;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.form-check-input:checked + .status-label.inactive {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

/* Performance Stats */
.performance-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.stat-value {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Table Enhancements */
.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-group .btn {
    padding: 4px 10px;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    margin: 0;
}

.pagination .page-item .page-link {
    color: #1e88e5;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-color: #1e88e5;
}

.pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    border-color: #1e88e5;
}

.pagination .page-item.disabled .page-link {
    background-color: #e9ecef;
}

/* ============================================
   Invoice Styles
   ============================================ */

/* Invoice Card */
.invoice-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.invoice-header {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    padding: 40px;
}

.invoice-header h3 {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.invoice-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.invoice-body {
    padding: 40px;
}

.client-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-right: 4px solid #1e88e5;
}

.client-info h5 {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.client-info h4 {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 15px;
}

.invoice-table {
    margin-top: 20px;
}

.invoice-table thead {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
}

.invoice-table thead th {
    border: none;
    padding: 15px;
    font-weight: bold;
}

.invoice-table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Invoice Totals */
.invoice-totals {
    max-width: 400px;
    margin-left: auto;
    margin-top: 30px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1.1rem;
}

.totals-row.total {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 1.3rem;
    border-bottom: none;
}

.totals-row.discount {
    color: #27ae60;
}

.invoice-notes {
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.invoice-notes h6 {
    color: #856404;
    font-weight: bold;
    margin-bottom: 10px;
}

.invoice-notes p {
    color: #856404;
    margin: 0;
}

/* Print Styles */
@media print {
    .sidebar,
    .top-navbar,
    footer,
    .page-header-card button,
    .btn-group {
        display: none !important;
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .invoice-card {
        box-shadow: none;
    }
}

/* ============================================
   Tax Settings Styles
   ============================================ */

.tax-info-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tax-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.tax-percentage {
    font-size: 4rem;
    font-weight: bold;
    color: #1e88e5;
    margin: 10px 0;
}

.tax-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.tax-details .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.tax-details .detail-item:last-child {
    border-bottom: none;
}

.tax-details .label {
    color: #7f8c8d;
    font-weight: normal;
}

.tax-details .value {
    color: #2c3e50;
    font-weight: bold;
}

/* ============================================
   Family Balance Styles
   ============================================ */

.balance-summary-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.balance-box {
    padding: 25px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.balance-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.balance-box h6 {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.balance-box h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.balance-box.total {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
}

.balance-box.total h6 {
    color: rgba(255, 255, 255, 0.9);
}

.balance-box.total h2 {
    color: white;
}

.balance-box.credit {
    border-right: 4px solid #27ae60;
}

.balance-box.debit {
    border-right: 4px solid #e74c3c;
}

/* Transaction Rows */
.transaction-credit {
    background-color: rgba(39, 174, 96, 0.05);
}

.transaction-debit {
    background-color: rgba(231, 76, 60, 0.05);
}

.transaction-credit:hover,
.transaction-debit:hover {
    background-color: #f8f9fa;
}

/* ============================================
   Permissions Styles
   ============================================ */

.permissions-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.permissions-table {
    font-size: 0.9rem;
}

.permissions-table thead th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.permissions-table .perm-col {
    min-width: 70px;
    font-size: 0.85rem;
    padding: 10px 5px;
}

.permissions-table tbody td {
    text-align: center;
    vertical-align: middle;
}

.permissions-table tbody td:first-child {
    text-align: right;
    background-color: #f8f9fa;
}

.permissions-table .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.permissions-legend {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   Notifications Styles
   ============================================ */

.notification-unread {
    background-color: rgba(30, 136, 229, 0.05);
    font-weight: 500;
}

.notification-read {
    opacity: 0.7;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.unread {
    background-color: #1e88e5;
    box-shadow: 0 0 8px rgba(30, 136, 229, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.read {
    background-color: #95a5a6;
}

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

/* ============================================
   Classes Styles
   ============================================ */

.class-detail-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.class-detail-header {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-detail-header h3 {
    margin: 0;
    font-weight: bold;
}

.class-detail-body {
    padding: 40px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item .label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-item .value {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: bold;
}

.detail-item .value a {
    color: #1e88e5;
    text-decoration: none;
}

.detail-item .value a:hover {
    text-decoration: underline;
}

.notes-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-right: 4px solid #1e88e5;
    margin-top: 10px;
}

.notes-box p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.8;
}

.class-detail-footer {
    background: #f8f9fa;
    padding: 20px 40px;
    border-top: 1px solid #dee2e6;
}

/* ============================================
   Instructor Profile Styles
   ============================================ */

.instructor-profile-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.instructor-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3);
}

.instructor-info p {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1rem;
}

.instructor-info a {
    color: #1e88e5;
    text-decoration: none;
}

.instructor-info a:hover {
    text-decoration: underline;
}

.salary-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.salary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.salary-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.salary-item.total {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    font-size: 1.1rem;
}

.salary-item.total span,
.salary-item.total strong {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .top-navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-card {
        margin-bottom: 20px;
    }
    
    .table-card-fixed {
        height: auto;
        margin-bottom: 20px;
    }
    
    .filter-card {
        text-align: center;
    }
    
    .filter-card .d-flex {
        flex-direction: column !important;
    }
    
    .filter-card .form-select {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* ============================================
   AVATAR CIRCLE (for Notifications)
   ============================================ */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}