/* ==================== VARIABLES ==================== */
:root {
    /* Colors - Light Theme */
    --primary-dark: #f8f9fa;
    --secondary-dark: #ffffff;
    --accent-gold: #FFD700;
    --accent-gold-hover: #FFC700;
    --text-light: #212529;
    --text-gray: #6c757d;
    --bg-dark: #f0f2f5;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #f44336;
    --info: #2196F3;

    /* Spacing */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 70px;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen p {
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 14px;
}

/* ==================== LAYOUT ==================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary-dark);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width var(--transition-speed);
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

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

.sidebar::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Sidebar Header */
.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.sidebar-title h2 {
    font-size: 18px;
    color: var(--accent-gold);
    margin-bottom: 2px;
}

.sidebar-title p {
    font-size: 12px;
    color: var(--text-gray);
}

.sidebar-toggle {
    margin-left: auto;
    color: var(--text-gray);
    font-size: 18px;
    padding: 8px;
    border-radius: 5px;
    transition: all var(--transition-speed);
}

.sidebar-toggle:hover {
    background: var(--secondary-dark);
    color: var(--accent-gold);
}

/* Sidebar Search */
.sidebar-search {
    padding: 20px;
    position: relative;
}

.sidebar-search i {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.sidebar-search input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    transition: all var(--transition-speed);
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--card-bg);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 10px 0;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-gray);
    transition: all var(--transition-speed);
    position: relative;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-item span:first-of-type {
    flex: 1;
    font-size: 14px;
}

.nav-item:hover {
    background: var(--secondary-dark);
    color: var(--text-light);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--secondary-dark), transparent);
    color: var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.nav-item.active i {
    color: var(--accent-gold);
}

/* Navigation Badges */
.nav-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: var(--info);
    color: white;
}

.nav-badge.warning {
    background: var(--warning);
}

.nav-badge.new {
    background: var(--success);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed);
}

/* ==================== TOPBAR ==================== */
.topbar {
    height: var(--topbar-height);
    background: var(--secondary-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    color: var(--text-light);
    font-size: 20px;
    padding: 10px;
}

.topbar-left h1 {
    font-size: 24px;
    color: var(--text-light);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Topbar Search */
.topbar-search {
    position: relative;
    display: none; /* Hidden on mobile, shown on desktop */
}

.topbar-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.topbar-search input {
    padding: 10px 15px 10px 40px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    width: 250px;
    font-size: 14px;
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Topbar Notifications */
.topbar-notifications {
    position: relative;
    color: var(--text-gray);
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.topbar-notifications:hover {
    color: var(--accent-gold);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Topbar User */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background var(--transition-speed);
    cursor: pointer;
}

.topbar-user:hover {
    background: var(--secondary-dark);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
}

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

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.user-email {
    font-size: 12px;
    color: var(--text-gray);
}

/* Topbar Settings */
.topbar-settings {
    color: var(--text-gray);
    font-size: 20px;
    padding: 10px;
    transition: all var(--transition-speed);
}

.topbar-settings:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

/* ==================== PAGE CONTENT ==================== */
.page-content {
    padding: 30px;
    min-height: calc(100vh - var(--topbar-height));
}

/* ==================== DASHBOARD ==================== */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.students {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon.classes {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-icon.revenue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.warning {
    color: var(--warning);
}

.stat-change i {
    font-size: 10px;
}

/* Quick Actions */
.quick-actions {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.quick-actions h2 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions h2 i {
    color: var(--accent-gold);
}

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

.action-btn {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.action-btn:hover {
    background: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.action-btn i {
    font-size: 18px;
    color: var(--accent-gold);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 16px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--accent-gold);
}

.btn-link {
    color: var(--accent-gold);
    font-size: 13px;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.btn-link:hover {
    color: var(--accent-gold-hover);
}

.card-body {
    padding: 20px 25px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-gray);
}

/* Class List */
.class-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.class-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--secondary-dark);
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.class-item:hover {
    background: var(--primary-dark);
}

.class-info h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.class-info p {
    font-size: 12px;
    color: var(--text-gray);
}

.class-status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.class-status.open {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.class-status.ongoing {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.class-status.completed {
    background: rgba(33, 150, 243, 0.2);
    color: var(--info);
}

.class-status.closed {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

/* Loading Spinner Small */
.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* No Data / Error Messages */
.no-data, .error-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    padding: 20px;
}

.error-text {
    color: var(--danger);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.error-message i {
    font-size: 48px;
    color: var(--warning);
    margin-bottom: 20px;
}

.error-message h2 {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.error-message p {
    font-size: 14px;
    margin-bottom: 5px;
}

.error-detail {
    color: var(--danger);
    font-family: monospace;
    font-size: 12px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-header-content h2 {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header-content h2 i {
    color: var(--accent-gold);
}

.page-header-content p {
    color: var(--text-gray);
    font-size: 14px;
}

.page-header-actions {
    display: flex;
    gap: 10px;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-dark);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    border-color: var(--accent-gold);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 14px;
}

.btn-icon.btn-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.btn-icon.btn-success:hover {
    background: var(--success);
    color: white;
}

.btn-icon.btn-danger {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

.btn-icon.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-icon.btn-secondary {
    background: var(--secondary-dark);
    color: var(--text-gray);
    cursor: not-allowed;
}

.btn-icon.btn-info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.btn-icon.btn-info:hover {
    background: #2196F3;
    color: white;
}

.btn-icon.btn-warning {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.btn-icon.btn-warning:hover {
    background: var(--warning);
    color: white;
}

/* ==================== STATS SUMMARY ==================== */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-item .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-item .stat-icon.pending {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.stat-item .stat-icon.approved {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.stat-item .stat-icon.rejected {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

.stat-item .stat-icon.total {
    background: rgba(33, 150, 243, 0.2);
    color: var(--info);
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

/* ==================== CONTENT CARD ==================== */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==================== FILTERS BAR ==================== */
.filters-bar {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.tab-btn:hover {
    border-color: var(--accent-gold);
    color: var(--text-light);
}

.tab-btn.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    font-weight: 600;
}

.filter-search {
    position: relative;
    min-width: 250px;
}

.filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.filter-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* ==================== TABLE ==================== */
.table-container {
    overflow-x: auto;
}

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

.data-table thead {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

.data-table tbody tr {
    transition: background var(--transition-speed);
}

.data-table tbody tr:hover {
    background: var(--secondary-dark);
}

.loading-cell {
    text-align: center;
    padding: 40px 20px !important;
}

.loading-cell p {
    margin-top: 15px;
    color: var(--text-gray);
}

.no-data {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--text-gray);
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.no-data p {
    font-size: 14px;
}

/* ==================== BADGES ==================== */
.status-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.status-badge.warning {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.status-badge.danger {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

.status-badge.info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.class-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--secondary-dark);
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 500;
}

/* ==================== ACTION BUTTONS ==================== */
.action-buttons {
    display: flex;
    gap: 8px;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--accent-gold);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--secondary-dark);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.student-info {
    background: var(--secondary-dark);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.student-info p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.student-info p:last-child {
    margin-bottom: 0;
}

.student-info strong {
    color: var(--text-light);
}

.student-info span {
    color: var(--accent-gold);
}

/* Student Details Modal */
.student-details {
    max-height: 500px;
    overflow-y: auto;
}

.detail-section {
    background: var(--secondary-dark);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    color: var(--accent-gold);
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h4 i {
    font-size: 18px;
}

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

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

.detail-item label {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
}

.detail-item span {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==================== FORM INPUTS ==================== */
.form-input {
    width: 100%;
    padding: 10px 15px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-input:read-only {
    background: var(--primary-dark);
    cursor: not-allowed;
}

/* ==================== CLASSES GRID ==================== */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 25px;
}

.class-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.class-card-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-card-header h3 {
    font-size: 20px;
    margin: 0;
}

.class-card-body {
    padding: 20px;
}

.class-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.class-info-row i {
    color: var(--accent-gold);
    width: 20px;
}

.class-progress {
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--secondary-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    transition: width var(--transition-speed);
}

.progress-text {
    font-size: 12px;
    color: var(--text-gray);
}

.class-card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

/* ==================== BADGES GRID ==================== */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px;
}

.badge-item {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all var(--transition-speed);
}

.badge-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.badge-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.badge-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.badge-desc {
    font-size: 12px;
    color: var(--text-gray);
}

.badge-icon-small {
    font-size: 24px;
    margin-right: 5px;
    cursor: help;
}

/* ==================== MESSAGE DETAIL ==================== */
.message-detail {
    background: var(--secondary-dark);
    padding: 20px;
    border-radius: 8px;
}

.message-detail p {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.message-detail p:last-child {
    margin-bottom: 0;
}

.message-detail strong {
    color: var(--accent-gold);
    margin-right: 8px;
}

.message-content-box {
    background: var(--primary-dark);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 8px;
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .topbar-search {
        display: none;
    }

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

@media (max-width: 768px) {
    /* Sidebar */
    .sidebar {
        transform: translateX(-100%);
        z-index: 2000;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Main Content */
    .main-content {
        margin-left: 0;
    }

    /* Topbar */
    .mobile-menu-btn {
        display: block;
    }

    .topbar {
        padding: 0 15px;
    }

    .topbar-left h1 {
        font-size: 18px;
    }

    .user-info {
        display: none;
    }

    .topbar-settings {
        display: none;
    }

    /* Page Content */
    .page-content {
        padding: 20px 15px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Actions Grid */
    .actions-grid {
        grid-template-columns: 1fr;
    }

    /* Dashboard Grid */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-value {
        font-size: 24px;
    }

    .quick-actions h2 {
        font-size: 16px;
    }
}

