/* students.css - Streamlined Student Management with White Background */
:root {
    --deep-blue: #1e3a8a;
    --deep-blue-dark: #1e2a5e;
    --deep-blue-light: #3b82f6;
    --gold: #d4af37;
    --gold-dark: #b8941f;
    --gold-light: #f0d87e;
    --text: #1e293b;
    --text-light: #64748b;
    --border: rgba(30, 58, 138, 0.2);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(30, 58, 138, 0.2);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main Layout - WHITE BACKGROUND */
.student-management-page {
    background: #ffffff;
    min-height: 100vh;
    color: var(--text);
    padding: 1rem;
}

/* Header - Keep colored */
.header {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: white;
}

.header-left h2 {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-overview {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card.mini {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
}

.stat-card.mini i {
    font-size: 1.5rem;
    color: var(--gold);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Sections and Cards - Keep colored */
.section {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.section-title {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    color: white;
}

.card-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Buttons - Keep colored */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--deep-blue);
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-blue-light), var(--deep-blue));
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--deep-blue);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Search Box - White background for input */
.search-box.enhanced {
    position: relative;
    max-width: 400px;
}

.search-box.enhanced input {
    width: 100%;
    background: white;
    color: var(--deep-blue);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.search-box.enhanced i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--deep-blue);
}

/* Enhanced Table - Keep colored header, white body */
.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.enhanced-table thead {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
}

.enhanced-table th {
    color: var(--gold);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--gold);
    font-size: 0.875rem;
}

.enhanced-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text);
    font-size: 0.875rem;
    background: white;
}

.enhanced-table tbody tr {
    transition: all 0.2s ease;
}

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

/* Student Elements */
.student-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 1rem;
    overflow: hidden;
}

.student-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-id {
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 0.875rem;
}

.student-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.student-details {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-graduated {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-transferred {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Filters - Keep colored */
.filters-container {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
    color: white;
}

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

.filter-group label {
    display: block;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.class-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gold);
    color: var(--deep-blue);
    border-color: var(--gold);
}

.filter-select {
    width: 100%;
    background: white;
    color: var(--deep-blue);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.875rem;
}
.filter-select option {
    color: var(--text);
}
/* ===== FIXED STUDENT PROFILE STYLES - ENHANCED VISIBILITY ===== */

.student-profile {
    color: white;
}

/* Fixed Profile Header with Deep Blue Background */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border-radius: 20px;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.profile-photo-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 3.5rem;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 5px solid var(--gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BOLD WHITE Student Name - FIXED */
.profile-name {
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 800 !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

/* Student Details with Icons - ENHANCED VISIBILITY */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.student-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold-light);
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.student-detail-item i {
    color: var(--gold);
    width: 25px;
    text-align: center;
    font-size: 1.3rem;
}

/* Fixed Profile Tabs - More Visible */
.profile-actions-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(30, 42, 94, 0.8));
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--gold);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.profile-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.profile-action-btn.active,
.profile-action-btn:hover {
    background: var(--gold);
    color: var(--deep-blue) !important;
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Enhanced Info Cards with BOLD, CLEAR TEXT */
.info-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(30, 42, 94, 0.95));
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--gold);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.info-card-title {
    color: var(--gold) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Enhanced Text Readability - BOLD AND CLEAR */
.info-label {
    color: var(--gold-light) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.info-value {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.stat-value {
    color: var(--gold) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    color: var(--gold-light) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

/* Personal Info Grid - ENHANCED */
.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.info-item-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: var(--gold);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Academic Card - ENHANCED VISIBILITY */
.academic-summary {
    margin-bottom: 2.5rem;
}

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

.academic-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.academic-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: var(--gold);
}

.subjects-list {
    margin-bottom: 2rem;
}

.subjects-title {
    color: var(--gold) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.subject-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: var(--gold);
}

.subject-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-name {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.subject-grade {
    color: var(--gold) !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    width: 120px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 5px;
    transition: width 0.3s ease;
}

.subject-percentage {
    color: var(--gold-light) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    min-width: 50px;
    text-align: right;
}

/* Attendance Card - ENHANCED */
.attendance-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.attendance-rate {
    display: flex;
    justify-content: center;
}

.rate-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.rate-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.rate-value {
    display: block;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--gold) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.rate-label {
    font-size: 1rem !important;
    color: var(--gold-light) !important;
    font-weight: 700 !important;
}

.attendance-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.attendance-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.attendance-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.attendance-stat i {
    font-size: 2rem;
}

.attendance-stat.present i { color: #22c55e; }
.attendance-stat.absent i { color: #ef4444; }
.attendance-stat.late i { color: #f59e0b; }

/* Discipline Card - ENHANCED */
.discipline-summary {
    margin-bottom: 2rem;
}

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

.discipline-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.discipline-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: var(--gold);
}

.discipline-records {
    margin-bottom: 2rem;
}

.records-title {
    color: var(--gold) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.discipline-record {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 6px solid;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.discipline-record:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.discipline-record.low { border-left-color: #22c55e; }
.discipline-record.medium { border-left-color: #f59e0b; }
.discipline-record.high { border-left-color: #ef4444; }

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

.record-date {
    color: var(--gold-light) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.record-severity {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-low { background: rgba(34, 197, 94, 0.3); color: #22c55e !important; border: 2px solid rgba(34, 197, 94, 0.5); }
.severity-medium { background: rgba(245, 158, 11, 0.3); color: #f59e0b !important; border: 2px solid rgba(245, 158, 11, 0.5); }
.severity-high { background: rgba(239, 68, 68, 0.3); color: #ef4444 !important; border: 2px solid rgba(239, 68, 68, 0.5); }

.record-note {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.record-action {
    color: var(--gold-light) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* Fees Card - ENHANCED */
.fees-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.balance-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    text-align: center;
    border: 3px solid;
    min-width: 220px;
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: scale(1.05);
}

.balance-card.overdue {
    border-color: #ef4444;
}

.balance-amount {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.balance-status {
    color: var(--gold-light) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-paid {
    color: var(--gold-light) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.fees-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.fee-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.fee-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.fee-stat i {
    font-size: 2rem;
}

.payment-history {
    margin-bottom: 2rem;
}

.payments-title {
    color: var(--gold) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.payment-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.payment-record:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-date {
    color: var(--gold-light) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.payment-amount {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
}

.payment-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid { background: rgba(34, 197, 94, 0.3); color: #22c55e !important; border: 2px solid rgba(34, 197, 94, 0.5); }
.status-pending { background: rgba(245, 158, 11, 0.3); color: #f59e0b !important; border: 2px solid rgba(245, 158, 11, 0.5); }

/* Common Elements - ENHANCED */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gold-light) !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state p {
    margin-bottom: 0.75rem;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
}

.empty-state small {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.card-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 3px solid var(--glass-border);
}

/* Enhanced Quick Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 3px solid var(--gold);
}

.form-actions .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800 !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.form-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Quick Actions Dropdown */
.quick-actions-dropdown {
    position: relative;
    display: inline-block;
}

.quick-actions-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 250px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    z-index: 1000;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(10px);
}

.quick-actions-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 700 !important;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action-item:hover {
    background: var(--gold);
    color: var(--deep-blue) !important;
    transform: translateX(5px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-active {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e !important;
    border: 2px solid rgba(34, 197, 94, 0.5);
}

.status-graduated {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6 !important;
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.status-transferred {
    background: rgba(245, 158, 11, 0.3);
    color: #f59e0b !important;
    border: 2px solid rgba(245, 158, 11, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        padding: 2rem 1.5rem;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-actions-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-action-btn {
        min-width: auto;
        justify-content: center;
    }
    
    .personal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .attendance-summary,
    .fees-summary {
        grid-template-columns: 1fr;
    }
    
    .attendance-stats {
        grid-template-columns: 1fr;
    }
    
    .academic-stats,
    .discipline-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subject-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .subject-info {
        order: 1;
    }
    
    .progress-bar {
        order: 2;
        width: 100%;
    }
    
    .subject-percentage {
        order: 3;
        text-align: left;
    }
    
    .card-actions {
        flex-direction: column;
    }
}
/* ===== CRITICAL FIX FOR PERSONAL INFO CARDS TEXT ===== */

.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-radius: 16px;
    padding: 1.5rem;
    border: 3px solid var(--gold);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

/* FIX LABELS - MAKE THEM BOLD AND VISIBLE */
.info-label {
    color: var(--gold) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* FIX VALUES - MAKE THEM BOLD WHITE AND LARGE */
.info-value {
    color: #ee0606 !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

/* Fix status badges inside personal info */
.info-item-card .status-badge {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    padding: 0.75rem 1.5rem;
}
/* ===== FIX FOR MIRROR/BLUR EFFECT ===== */

.info-item-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(30, 42, 94, 0.9)) !important;
    border-radius: 16px;
    padding: 1.5rem;
    border: 3px solid var(--gold);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    /* REMOVE THE BLUR EFFECT */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Make text completely solid and crisp */
.info-label {
    color: var(--gold) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    /* Ensure no transparency */
    opacity: 1 !important;
}

.info-value {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
    /* Ensure no transparency */
    opacity: 1 !important;
}

/* Also fix the main info card background */
.info-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(30, 42, 94, 0.95)) !important;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* REMOVE BLUR HERE TOO */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* ===== COMPACT STUDENT PROFILE - SMALLER BUT STILL READABLE ===== */

.student-profile {
    color: white;
    transform: scale(0.9);
    transform-origin: top center;
    margin: -1rem; /* Compensate for scaling */
}

/* Or if scaling breaks things, let's do it manually: */

/* Compact Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border-radius: 16px;
    border: 2px solid var(--gold);
}

.profile-photo-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid var(--gold);
}

.profile-name {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.student-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Compact Tabs */
.profile-actions-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(30, 42, 94, 0.8));
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
}

.profile-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

/* Compact Info Cards */
.info-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(30, 42, 94, 0.95));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--gold);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 1.3rem;
}

.info-card-title {
    color: var(--gold) !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin: 0;
}

/* Compact Personal Info Grid */
.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(30, 42, 94, 0.9));
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid var(--gold);
}

.info-label {
    color: var(--gold) !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-value {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

/* Compact Academic Stats */
.academic-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.academic-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    color: var(--gold) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
}

.stat-label {
    color: var(--gold-light) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

/* Compact Subject Items */
.subject-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.subject-name {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

.subject-grade {
    color: var(--gold) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}

.progress-bar {
    width: 80px;
    height: 8px;
}

.subject-percentage {
    color: var(--gold-light) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

/* Compact Attendance */
.attendance-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.rate-circle {
    width: 100px;
    height: 100px;
}

.rate-value {
    font-size: 1.3rem !important;
}

.attendance-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.attendance-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.attendance-stat i {
    font-size: 1.5rem;
}

/* Compact Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gold);
}

.form-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 800 !important;
    border-radius: 8px;
}

/* Make modal content area more compact */
.modal-content.extra-large {
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Quick actions menu smaller */
.quick-actions-menu {
    min-width: 200px;
    padding: 1rem;
}

.quick-action-item {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
}
/* ===== CRISP TEXT - NO SHADOWS ===== */

.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.info-item-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 1.2rem;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
    border-color: var(--gold-dark);
}

/* Icons with clean look */
.info-item-card::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--gold);
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* REMOVE ALL TEXT SHADOWS - CRISP CLEAN TEXT */
.info-label {
    color: var(--deep-blue) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    display: block;
    /* NO SHADOW */
    text-shadow: none !important;
}

.info-value {
    color: #1e293b !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.4;
    /* NO SHADOW */
    text-shadow: none !important;
}

/* Also remove shadows from other profile text */
.profile-name {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem;
    /* NO SHADOW */
    text-shadow: none !important;
}

.info-card-title {
    color: var(--gold) !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin: 0;
    /* NO SHADOW */
    text-shadow: none !important;
}

.stat-value {
    color: var(--gold) !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    /* NO SHADOW */
    text-shadow: none !important;
}

.stat-label {
    color: var(--gold-light) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    /* NO SHADOW */
    text-shadow: none !important;
}

.subject-name {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    /* NO SHADOW */
    text-shadow: none !important;
}

.subject-grade {
    color: var(--gold) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    /* NO SHADOW */
    text-shadow: none !important;
}

.rate-value {
    font-size: 1.3rem !important;
    /* NO SHADOW */
    text-shadow: none !important;
}

.record-note {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    /* NO SHADOW */
    text-shadow: none !important;
}

.payment-amount {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    /* NO SHADOW */
    text-shadow: none !important;
}

/* Remove shadows from buttons and tabs too */
.profile-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
    /* NO SHADOW */
    text-shadow: none !important;
}

.form-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 800 !important;
    border-radius: 8px;
    /* NO SHADOW */
    text-shadow: none !important;
}

/* Make sure all text in student profile has no shadows */
/* ===== FIXED STUDENT PROFILE STYLES - DARK BACKGROUND FOR DROPDOWNS ===== */

.student-profile {
    color: white;
}

/* Fixed Profile Header with Deep Blue Background */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border-radius: 20px;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ... (keep all other existing profile styles) ... */

/* ===== FIX FOR FINANCIAL SECTION DROPDOWNS - DARK THEME ===== */

/* Target dropdowns inside the student profile specifically */
.student-profile select,
.student-profile .dropdown-content,
.student-profile .form-control,
.student-profile input[type="text"],
.student-profile input[type="number"],
.student-profile input[type="date"],
.student-profile textarea {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark)) !important;
    color: white !important;
    border: 2px solid var(--gold) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Make sure dropdown options are also dark */
.student-profile option {
    background: var(--deep-blue-dark) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.5rem !important;
}

/* Specific styling for dropdown content (like in Record Payment, Deposit Pocket Money, etc.) */
.student-profile .dropdown-content {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark)) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    min-width: 200px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    z-index: 1001 !important;
}

.student-profile .dropdown-content a {
    color: rgb(24, 3, 3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.student-profile .dropdown-content a:hover {
    background: var(--gold) !important;
    color: var(--deep-blue) !important;
    transform: translateX(5px) !important;
}

/* Placeholder text color */
.student-profile ::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Focus states */
.student-profile select:focus,
.student-profile .form-control:focus,
.student-profile input:focus,
.student-profile textarea:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3) !important;
    border-color: var(--gold-light) !important;
}

/* Labels for form elements in financial section */
.student-profile .form-label,
.student-profile label {
    color: var(--gold) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Form groups in financial section */
.student-profile .form-group {
    margin-bottom: 1.5rem !important;
}

/* Specific fix for the "Record Payment" modal if it has a different structure */
.student-profile .modal-content select,
.student-profile .modal-content .dropdown-content,
.student-profile .modal-content .form-control {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark)) !important;
    color: rgb(243, 161, 161) !important;
    border: 2px solid var(--gold) !important;
}

/* Fix for any Bootstrap dropdowns that might be used */
.student-profile .dropdown-menu {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark)) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

.student-profile .dropdown-item {
    color: white !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.student-profile .dropdown-item:hover {
    background: var(--gold) !important;
    color: var(--deep-blue) !important;
}

/* Fix for date picker if used */
.student-profile input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
}

/* Ensure this overrides any white background styles */
.student-profile *[class*="dropdown"],
.student-profile *[class*="select"],
.student-profile *[class*="menu"] {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark)) !important;
    color: white !important;
}

/* Add this to override any inline styles that might be setting white background */
.student-profile [style*="background: white"],
.student-profile [style*="background-color: white"],
.student-profile [style*="background: #fff"],
.student-profile [style*="background-color: #fff"],
.student-profile [style*="background: #ffffff"],
.student-profile [style*="background-color: #ffffff"] {
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark)) !important;
}
/* ===== LEFT SIDEBAR PANELS STYLES ===== */

.sidebar-panels {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
  padding: 1.5rem 1rem;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 5px 0 25px rgba(0,0,0,0.3);
  border-right: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Panel Base Styles */
.panel {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.panel:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.panel-header {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(30, 42, 94, 0.9));
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--gold);
  cursor: pointer;
}

.panel-header h4 {
  color: var(--gold) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.panel-toggle {
  background: var(--gold);
  color: var(--deep-blue);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: bold;
}

.panel-toggle:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}

.panel-content {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.panel-content.collapsed {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

/* Quick Actions Panel */
.quick-actions-panel .action-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.quick-actions-panel .action-item:hover {
  background: var(--gold);
  color: var(--deep-blue) !important;
  transform: translateX(8px);
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.quick-actions-panel .action-item i {
  width: 20px;
  text-align: center;
  font-size: 1.2rem;
}

/* Announcements Panel */
.announcements-panel .announcement-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.announcements-panel .announcement-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  border-color: var(--gold);
}

.announcement-title {
  color: var(--gold) !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.announcement-date {
  color: var(--gold-light) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem;
}

.announcement-preview {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.85rem !important;
  line-height: 1.5;
  font-weight: 600;
}

/* Stats Panel */
.stats-panel .stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stats-panel .stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  border-color: var(--gold);
}

.stats-panel .stat-item i {
  color: var(--gold);
  font-size: 1.3rem;
  width: 25px;
  text-align: center;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.stat-value {
  color: var(--gold) !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.stat-label {
  color: var(--gold-light) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  margin-top: 1rem;
  border: 2px solid var(--gold);
  font-size: 0.85rem !important;
  line-height: 1.5;
  color: var(--gold-light) !important;
  font-weight: 600;
}

.tip-item i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Scrollbar Styling */
.panel-content::-webkit-scrollbar {
  width: 6px;
}

.panel-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ===== MAIN CONTENT ADJUSTMENTS ===== */

.main-content {
  margin-left: 320px;
  margin-right: 0 !important;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  background: #ffffff;
}

.container {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 1rem 2rem;
}

/* Ensure all main content elements take full width */
.header {
  margin-right: 0 !important;
  width: 100% !important;
}

.section {
  margin-right: 0 !important;
  width: 100% !important;
}

.card {
  width: 100% !important;
}

.table-responsive {
  margin-right: 0 !important;
  width: 100% !important;
}

/* ===== MOBILE RESPONSIVENESS ===== */

.sidebar-toggle {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 1001;
  background: var(--gold);
  color: var(--deep-blue);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  font-weight: bold;
}

.sidebar-toggle:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  .sidebar-panels {
    transform: translateX(-100%);
  }
  
  .sidebar-panels.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .container {
    padding: 1rem;
  }
  
  /* Move toggle button when sidebar is open */
  .sidebar-panels.open + .sidebar-toggle {
    left: 285px;
    transition: left 0.3s ease;
  }
}

@media (max-width: 768px) {
  .sidebar-panels {
    width: 280px;
  }
  
  .container {
    padding: 0.75rem;
  }
  
  .sidebar-panels.open + .sidebar-toggle {
    left: 245px;
  }
}

/* Fix any potential conflicts with existing styles */
.student-management-page {
  margin-left: 0 !important;
}
/* ===== FINANCIAL MANAGEMENT STYLES ===== */
.financial-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.financial-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #9ed6cf;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.financial-tab.active,
.financial-tab:hover {
    background: var(--gold);
    color: var(--deep-blue);
    border-color: var(--gold);
}

.financial-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(30, 42, 94, 0.95));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.financial-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.financial-card-title {
    color: var(--gold) !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin: 0;
}

/* Fee Breakdown */
.fee-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fee-label {
    color: var(--gold-light) !important;
    font-weight: 600 !important;
}

.fee-amount {
    color: #d80d0d !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.fee-amount.success {
    color: #10b981 !important;
}

.fee-amount.danger {
    color: #ef4444 !important;
}

/* Pocket Money */
.pocket-money-balance {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-radius: 12px;
    border: 2px solid #10b981;
    margin-bottom: 1.5rem;
}

.balance-amount {
    color: #10b981 !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem;
}

.balance-label {
    color: #a7f3d0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.pocket-money-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Gadgets */
.gadgets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gadget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.gadget-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.gadget-name {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.gadget-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

.status-deposited {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.status-collected {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

/* Transaction History */
.transaction-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.transaction-date {
    color: var(--gold-light) !important;
    font-size: 0.8rem !important;
}

.transaction-amount {
    color: #ee1111 !important;
    font-weight: 700 !important;
}

.transaction-amount.deposit {
    color: #10b981 !important;
}

.transaction-amount.withdrawal {
    color: #ef4444 !important;
}

/* Quick Financial Actions */
.quick-financial-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gold);
}

.financial-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700 !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.financial-action-btn:hover {
    background: var(--gold);
    color: var(--deep-blue) !important;
    transform: translateY(-2px);
}

/* Receipt Styles */
.receipt-container {
    background: white;
    color: #1e293b !important;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid var(--deep-blue);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.receipt-title {
    color: var(--deep-blue) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem;
}

.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.receipt-label {
    color: #64748b !important;
    font-weight: 600 !important;
}

.receipt-value {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.receipt-total {
    border-top: 3px solid var(--deep-blue);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
}

.receipt-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b !important;
    font-size: 0.9rem !important;
}
/* ===== FINANCIAL COMPONENTS ===== */
.financial-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.financial-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.financial-stat:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.financial-stat i {
    font-size: 2rem;
    color: var(--gold);
}

.financial-stat .stat-value {
    color: var(--gold) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    display: block;
}

.financial-stat .stat-label {
    color: var(--gold-light) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.bulk-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Modal form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}
/* Form visibility improvements */
.modal input, .modal select, .modal textarea {
    color: #333 !important;
    background-color: #fff !important;
    border: 2px solid #e0e0e0 !important;
    font-size: 16px !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modal input:focus, .modal select:focus, .modal textarea:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.modal input::placeholder, .modal textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.modal select {
    appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
    padding-right: 40px !important;
}

.modal label {
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 14px !important;
}

/* Receipt viewer styles */
#receiptViewerModal .modal-content {
    animation: slideUp 0.3s ease !important;
}

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

/* Print styles for receipts */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
    
    @page {
        size: 80mm auto;
        margin: 0;
    }
}
.total-revenue-row {
    background-color: #e8f5e9;
    border-top: 2px solid #2e7d32;
}

.total-revenue {
    color: #2e7d32;
    font-weight: bold;
}