/* Admin Pages CSS */
.admin-page {
    min-height: 100vh;
    background: var(--background-secondary);
    padding-top: 80px;
}

/* Admin Header */
.admin-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.header-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.credit-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.credit-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.credit-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    color: #1e293b !important;
}

.stat-card * {
    color: inherit !important;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--radius-lg);
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b !important;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #64748b !important;
    font-weight: 500;
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
    min-width: 300px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Children/Students Grid */
.children-grid,
.students-grid,
.classes-grid,
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.child-card,
.student-card,
.class-card,
.teacher-card {
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.child-card:hover,
.student-card:hover,
.class-card:hover,
.teacher-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.card-stat {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.card-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.card-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.card-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Loading Cards */
.loading-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Kurumsal Admin Sidebar */
.kurumsal-admin {
    display: flex;
    padding-top: 0;
}

.admin-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

.admin-content {
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-card canvas {
    max-height: 300px;
}

/* Tables */
.students-table,
.institutions-table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--background-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: var(--background-secondary);
}

/* Settings Form */
.settings-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.code-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.code-display span {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    flex: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .kurumsal-admin .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .kurumsal-admin .admin-main {
        margin-left: 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box input {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 1.5rem 0;
    }
    
    .header-info h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .children-grid,
    .students-grid,
    .classes-grid,
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        justify-content: stretch;
    }
    
    .search-box input {
        min-width: auto;
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .admin-content {
        padding: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-stats {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-page {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card,
.section-card,
.child-card,
.student-card,
.class-card,
.teacher-card {
    animation: fadeInUp 0.6s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Children Grid */
.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.child-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.child-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.child-card.pending {
    border: 2px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.child-card.code-waiting {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
}

.child-avatar.code-waiting {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.status-badge.code-waiting {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.child-avatar.pending {
    background: #f59e0b;
}

.status-badge.pending {
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.child-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.child-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.child-info p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.child-info small {
    color: var(--text-light);
    font-size: 0.75rem;
}

.child-actions {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.child-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: var(--success-color);
}

.status-badge.inactive {
    background: var(--secondary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
}

/* Teacher Code Display Styles */
.code-display-large {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.code-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    letter-spacing: 0.1em;
    min-width: 120px;
    text-align: center;
}

.code-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    font-style: italic;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.card-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.card-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

/* Teacher Cards Styles */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.teacher-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.teacher-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.teacher-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.teacher-initials {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.teacher-info {
    flex-grow: 1;
    min-width: 0;
}

.teacher-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.teacher-email {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.teacher-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.teacher-join-date,
.teacher-last-login,
.teacher-code {
    font-size: 0.8rem;
    color: #94a3b8;
}

.teacher-last-login {
    color: #059669;
}

.teacher-code {
    color: #7c3aed;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.teacher-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.teacher-status.active {
    background: #dcfce7;
    color: #166534;
}

.teacher-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.teacher-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.teacher-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.teacher-actions .btn {
    min-width: 80px;
    justify-content: center;
}

/* Empty state for teachers */
.teachers-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
}

.teachers-grid .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.teachers-grid .empty-state h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.teachers-grid .empty-state p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
}

/* Error state for teachers */
.teachers-grid .error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #fef2f2;
    border: 2px dashed #fca5a5;
    border-radius: 12px;
}

.teachers-grid .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.teachers-grid .error-state h3 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.teachers-grid .error-state p {
    color: #7f1d1d;
    max-width: 400px;
    margin: 0 auto;
}

/* Reports Modal Styles */
.reports-modal {
    max-width: 1000px !important;
    max-height: 90vh;
    width: 95%;
}

.reports-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.report-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.report-section:last-child {
    border-bottom: none;
}

.report-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.report-section h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Analysis Content */
.analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.analysis-chart {
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    height: 300px;
}

.personality-traits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trait {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trait-name {
    min-width: 100px;
    font-weight: 500;
    color: var(--text-primary);
}

.trait-bar {
    flex: 1;
    height: 8px;
    background: var(--background-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

.trait-score {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* Career Suggestions */
.career-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.career-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.career-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.career-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.career-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.career-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.match-score {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.activity-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.activity-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.activity-score {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reports-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .analysis-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .career-suggestions {
        grid-template-columns: 1fr;
    }
    
    .report-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Create Class Modal Styles */
#create-class-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#create-class-modal.show {
    opacity: 1;
}

#create-class-modal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#create-class-modal.show .modal-content {
    transform: translateY(0);
}

#create-class-modal .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#create-class-modal .modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

#create-class-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

#create-class-modal .modal-close:hover {
    background-color: #f0f0f0;
}

#create-class-modal .modal-body {
    padding: 1.5rem;
}

#create-class-modal .form-group {
    margin-bottom: 1.5rem;
}

#create-class-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

#create-class-modal .required {
    color: #e74c3c;
}

#create-class-modal input,
#create-class-modal select,
#create-class-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#create-class-modal input:focus,
#create-class-modal select:focus,
#create-class-modal textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#create-class-modal textarea {
    resize: vertical;
    min-height: 80px;
}

#create-class-modal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

#create-class-modal .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#create-class-modal .btn-primary {
    background: #3498db;
    color: white;
}

#create-class-modal .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

#create-class-modal .btn-secondary {
    background: #95a5a6;
    color: white;
}

#create-class-modal .btn-secondary:hover {
    background: #7f8c8d;
}

/* Mobile responsiveness for create class modal */
@media (max-width: 768px) {
    #create-class-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    #create-class-modal .modal-header,
    #create-class-modal .modal-body {
        padding: 1rem;
    }
    
    #create-class-modal .form-actions {
        flex-direction: column;
    }
    
    #create-class-modal .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Class Cards Styles */
.class-card {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.class-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.class-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.class-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.class-level {
    font-size: 1.2rem;
}

.class-info {
    flex: 1;
}

.class-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.class-teacher {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.class-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.class-status.active {
    background: #d4edda;
    color: #155724;
}

.class-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.class-status.archived {
    background: #e2e3e5;
    color: #383d41;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.class-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1.1rem;
}

.stat-text {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.class-description {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.class-description p {
    margin: 0;
    color: #1565c0;
    font-size: 0.9rem;
}

.class-meta {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.class-created {
    font-size: 0.8rem;
    color: #666;
}

.class-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.class-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.class-actions .btn-outline {
    background: white;
    color: #495057;
    border: 1px solid #dee2e6;
}

.class-actions .btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.class-actions .btn-primary {
    background: #007bff;
    color: white;
}

.class-actions .btn-primary:hover {
    background: #0056b3;
}

.class-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.class-actions .btn-secondary:hover {
    background: #545b62;
}

.class-actions .btn-danger {
    background: #dc3545;
    color: white;
}

.class-actions .btn-danger:hover {
    background: #c82333;
}

/* Mobile responsiveness for class cards */
@media (max-width: 768px) {
    .class-card {
        padding: 1rem;
    }
    
    .class-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .class-icon {
        width: 50px;
        height: 50px;
    }
    
    .class-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .class-actions {
        gap: 0.25rem;
    }
    
    .class-actions .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        flex: 1;
        justify-content: center;
    }
}

/* Class Details Modal Styles */
#class-details-modal,
#edit-class-modal,
#manage-students-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#class-details-modal.show,
#edit-class-modal.show,
#manage-students-modal.show {
    opacity: 1;
}

#class-details-modal .modal-content,
#edit-class-modal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#manage-students-modal .modal-content.large-modal {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#class-details-modal.show .modal-content,
#edit-class-modal.show .modal-content,
#manage-students-modal.show .modal-content {
    transform: translateY(0);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.detail-item span {
    color: #666;
    font-size: 1rem;
}

.description-box {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    color: #495057;
}

.details-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Student Management Styles */
.student-management-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.class-summary h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.class-summary p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.management-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.students-section,
.available-students-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.students-section h4,
.available-students-section h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.search-box {
    display: flex;
    gap: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.students-list {
    min-height: 200px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.loading-state,
.empty-state,
.error-state,
.info-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-icon,
.error-icon,
.info-icon {
    font-size: 3rem;
}

.info-state {
    background: #e3f2fd;
    border-radius: 8px;
}

.info-state h4 {
    margin: 0.5rem 0;
    color: #1565c0;
}

.info-state p {
    margin: 0.25rem 0;
    color: #1976d2;
}

.info-state small {
    color: #1565c0;
    opacity: 0.8;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.archived {
    background: #e2e3e5;
    color: #383d41;
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
    #class-details-modal .modal-content,
    #edit-class-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    #manage-students-modal .modal-content.large-modal {
        width: 98%;
        margin: 0.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .management-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .management-actions {
        flex-direction: column;
    }
    
    .details-actions {
        flex-direction: column;
    }
    
    .details-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Student Item Styles */
.student-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: white;
    transition: all 0.2s ease;
}

.student-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.student-item.available {
    border-left: 4px solid #28a745;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.student-initials {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.student-info {
    flex: 1;
    min-width: 0;
}

.student-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.student-email {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.student-date {
    font-size: 0.8rem;
    color: #999;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.student-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

/* School Connection Styles for Student Page */
.school-connected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.school-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.school-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.school-initials {
    font-size: 1.1rem;
}

.school-details h3 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.2rem;
}

.school-status.connected {
    color: #28a745;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.school-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.school-code-input {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-icon {
    font-size: 2rem;
}

.input-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.input-info p {
    margin: 0;
    color: #666;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex: 1;
}

.form-help {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.help-icon {
    font-size: 1.5rem;
    color: #1976d2;
    flex-shrink: 0;
}

.help-text {
    color: #1565c0;
}

.help-text p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.help-text ul {
    margin: 0;
    padding-left: 1.5rem;
}

.help-text li {
    margin-bottom: 0.25rem;
}

.student-class-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.class-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #856404;
}

.class-icon {
    font-size: 1.1rem;
}

.no-class-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #e2e3e5;
    border: 1px solid #6c757d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
}

.info-icon {
    font-size: 1.1rem;
}

/* Mobile responsiveness for student management */
@media (max-width: 768px) {
    .student-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .student-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .student-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .school-connected {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .school-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .input-with-button .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Student Cards Styles */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.student-card {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.student-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.student-initials {
    font-size: 1.1rem;
    text-transform: uppercase;
}

.student-info {
    flex: 1;
}

.student-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.student-email {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.student-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.student-status.active {
    background: #d4edda;
    color: #155724;
}

.student-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.student-status.suspended {
    background: #fff3cd;
    color: #856404;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.student-details {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.detail-text {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.student-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    min-width: 100px;
}

.code-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.code-actions .btn {
    flex: 1;
}

/* Mobile responsiveness for student cards */
@media (max-width: 768px) {
    .students-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .student-card {
        padding: 1rem;
    }
    
    .student-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .student-avatar {
        width: 40px;
        height: 40px;
    }
    
    .student-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .student-actions .btn {
        width: 100%;
        flex: none;
    }
    
    .code-actions {
        flex-direction: column;
    }
}

/* School Details Modal Styles */
#school-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#school-details-modal.show {
    opacity: 1;
}

#school-details-modal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#school-details-modal.show .modal-content {
    transform: translateY(0);
}

.school-details-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.school-overview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.school-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.school-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.school-basic-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.school-description {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.school-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.school-stats-grid .stat-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.school-stats-grid .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.school-stats-grid .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.school-stats-grid .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.school-stats-grid .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.school-contact-info,
.connection-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.school-contact-info h4,
.connection-info h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-grid,
.connection-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item,
.connection-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon,
.connection-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.contact-text,
.connection-text {
    color: #495057;
    font-size: 0.9rem;
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Mobile responsiveness for school details modal */
@media (max-width: 768px) {
    #school-details-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .school-overview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .school-logo {
        width: 60px;
        height: 60px;
    }
    
    .school-logo-text {
        font-size: 1.4rem;
    }
    
    .school-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .school-stats-grid .stat-card {
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Teacher Panel Class Cards */
.teacher-class-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.teacher-class-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.teacher-class-card .class-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.teacher-class-card .class-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.teacher-class-card .class-info {
    flex: 1;
}

.teacher-class-card .class-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.teacher-class-card .class-level {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.teacher-class-card .class-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.teacher-class-card .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

.teacher-class-card .stat-icon {
    font-size: 1rem;
}

.teacher-class-card .class-description {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.teacher-class-card .class-description p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.teacher-class-card .class-meta {
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.teacher-class-card .creation-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.teacher-class-card .class-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Student Performance Modal */
#student-performance-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#student-performance-modal.show {
    opacity: 1;
}

#student-performance-modal .large-modal {
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.performance-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.performance-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.performance-score {
    display: flex;
    justify-content: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.perf-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.perf-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.perf-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.perf-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.performance-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.subject-performance {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subject-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 1rem;
    align-items: center;
}

.subject-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.subject-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.subject-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.subject-score {
    font-size: 0.9rem;
    font-weight: 600;
    color: #007bff;
    min-width: 40px;
}

.recent-tests {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.test-result {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.test-name {
    font-weight: 500;
    color: #2c3e50;
}

.test-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.test-score {
    font-weight: 600;
    color: #007bff;
}

.performance-recommendations {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
}

.performance-recommendations h4 {
    margin: 0 0 1rem 0;
    color: #856404;
    font-size: 1.1rem;
    font-weight: 600;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.rec-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.rec-text {
    color: #495057;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Mobile responsiveness for teacher panel and performance modal */
@media (max-width: 768px) {
    .teacher-class-card .class-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .teacher-class-card .class-actions {
        flex-direction: column;
    }
    
    .teacher-class-card .class-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    #student-performance-modal .large-modal {
        width: 98%;
        margin: 1rem;
    }
    
    .performance-overview {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-value {
        font-size: 1.5rem;
    }
    
    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .performance-charts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .subject-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .subject-bar {
        order: 2;
    }
    
    .subject-score {
        order: 3;
        text-align: left;
    }
    
    .test-result {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
}

/* Student Details Modal */
#student-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#student-details-modal.show {
    opacity: 1;
}

.student-details-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.student-overview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.student-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-initials-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.student-basic-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.student-email-large {
    margin: 0 0 0.75rem 0;
    opacity: 0.9;
    font-size: 1rem;
}

.student-status-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.student-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.info-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.info-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-label {
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

.info-value {
    color: #2c3e50;
    font-weight: 600;
}

.student-performance-summary {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.student-performance-summary h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.perf-card {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.perf-card .perf-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.perf-card .perf-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.perf-card .perf-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.student-activity {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.student-activity h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.activity-icon {
    font-size: 1.1rem;
    color: #007bff;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.activity-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.activity-score {
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

/* Assign Class Modal */
#assign-class-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#assign-class-modal.show {
    opacity: 1;
}

/* Mobile responsiveness for student details */
@media (max-width: 768px) {
    .student-overview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .student-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .student-initials-large {
        font-size: 1.4rem;
    }
    
    .student-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-item {
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .activity-score {
        text-align: left;
    }
}

/* Detail Modal Styles */
#teacher-details-modal, #student-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#teacher-details-modal.show, #student-details-modal.show {
    opacity: 1;
    visibility: visible;
}

/* Teacher and Student Class Assignment Modals */
#assign-teacher-class-modal, #assign-class-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#assign-teacher-class-modal.show, #assign-class-modal.show {
    opacity: 1;
    visibility: visible;
}

.detail-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.teacher-avatar-large, .student-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.teacher-initials-large, .student-initials-large {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.detail-info {
    flex: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 120px;
}

.detail-row span {
    color: var(--text-secondary);
    text-align: right;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #fff3cd;
    color: #856404;
}

.status-badge.suspended {
    background: #f8d7da;
    color: #721c24;
}

/* Detail Modal Mobile Responsiveness */
@media (max-width: 768px) {
    .detail-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .teacher-avatar-large, .student-avatar-large {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .teacher-initials-large, .student-initials-large {
        font-size: 1.4rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-row span {
        text-align: left;
    }
}

/* Performance Analysis Styles */
.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.performance-grid .chart-card.full-width {
    grid-column: 1 / -1;
}

.distribution-bars {
    padding: 20px 0;
}

.distribution-item {
    margin-bottom: 15px;
}

.distribution-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.distribution-bar {
    position: relative;
    background: #F3F4F6;
    border-radius: 8px;
    height: 30px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.distribution-value {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.performance-table th,
.performance-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.performance-table th {
    background: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.score-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.score-badge.excellent {
    background: #D1FAE5;
    color: #065F46;
}

.score-badge.good {
    background: #DBEAFE;
    color: #1E40AF;
}

.score-badge.average {
    background: #FEF3C7;
    color: #92400E;
}

.score-badge.needs-improvement {
    background: #FEE2E2;
    color: #991B1B;
}

.status-badge.excellent {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.good {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-badge.average {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.needs-improvement {
    background: #FEE2E2;
    color: #991B1B;
}

.performance-stats .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.performance-stats .stat-card .stat-icon {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-table {
        font-size: 14px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 8px;
    }
}

/* Class Performance Modal Styles */
#class-performance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#class-performance-modal.show {
    opacity: 1;
    visibility: visible;
}

.performance-modal {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

#class-performance-modal.show .performance-modal {
    transform: translateY(0) scale(1);
}

.performance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.perf-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.perf-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.perf-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.perf-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chart-section {
    margin: 30px 0;
    text-align: center;
}

.chart-section h3 {
    margin-bottom: 20px;
    color: #374151;
}

.students-performance {
    margin: 30px 0;
}

.students-performance h3 {
    margin-bottom: 15px;
    color: #374151;
}

.improvement-positive {
    color: #10B981;
    font-weight: 600;
}

.improvement-negative {
    color: #EF4444;
    font-weight: 600;
}

.best-student {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FCD34D 100%);
    border-radius: 12px;
    border: 2px solid #F59E0B;
}

.best-student h3 {
    margin-bottom: 15px;
    color: #92400E;
}

.best-student-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.best-student-card .student-info {
    display: flex;
    flex-direction: column;
}

.best-student-card .student-info strong {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 5px;
}

.best-student-card .score {
    color: #059669;
    font-weight: 600;
}

.achievement-badge {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
    margin-top: 30px;
}

/* Responsive for performance modal */
@media (max-width: 768px) {
    .performance-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .performance-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .perf-stat-card {
        padding: 15px;
    }
    
    .perf-number {
        font-size: 1.5rem;
    }
    
    .perf-icon {
        font-size: 1.5rem;
    }
    
    .best-student-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .achievement-badge {
        font-size: 2rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}
