﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background: #2B4C7E;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    background: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sidebar-header .logo {
        width: 40px;
        height: 40px;
        background: #FFD700;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #2B4C7E;
    }

    .sidebar-header h2 {
        font-size: 1.2rem;
        font-weight: 600;
    }

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #B8CCE8;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    font-size: 0.95rem;
}

    .nav-link:hover, .nav-link.active {
        background: #1e3a5f;
        color: white;
        border-right: 3px solid #4A90E2;
    }

.nav-icon {
    width: 16px;
    height: 16px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    flex: 1;
    background: #f5f7fa;
}

.top-header {
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid #e5e9f2;
    display: flex;
    justify-content: between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748B;
    font-size: 0.9rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #64748B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.content-wrapper {
    padding: 30px;
}

.page-title {
    margin-bottom: 30px;
}

    .page-title h1 {
        font-size: 1.8rem;
        color: #1e293b;
        font-weight: 600;
    }

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 40px;
    color: #4A90E2;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4A90E2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Filters Section */
.filters-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

    .filter-group input,
    .filter-group select {
        padding: 10px 12px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 0.9rem;
        background: white;
    }

        .filter-group input:focus,
        .filter-group select:focus {
            outline: none;
            border-color: #4A90E2;
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
        }

.actions-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-primary {
    background: #4A90E2;
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background: #357ABD;
    }

.btn-secondary {
    background: #6b7280;
    color: white;
}

    .btn-secondary:hover:not(:disabled) {
        background: #4b5563;
    }

.add-new-btn {
    background: #4A90E2;
    color: white;
    margin-left: auto;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #4A90E2;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4A90E2;
}

.stat-label {
    color: #64748B;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Table Styling */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.9rem;
}

tr:hover {
    background: #f8fafc;
}

.registration-number {
    color: #4A90E2;
    font-weight: 600;
}

.scholar-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.scholar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4A90E2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.scholar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scholar-details h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #1e293b;
}

.scholar-details p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #64748B;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.print-btn {
    background: #10b981;
    color: white;
}

    .print-btn:hover {
        background: #059669;
    }

/* Pagination Styling */
.pagination-container {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pagination-info {
    margin: 0 15px;
    color: #64748B;
    font-size: 0.9rem;
}

.page-size-selector {
    margin-top: 10px;
}

    .page-size-selector select {
        padding: 5px 10px;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        font-size: 0.9rem;
    }

 
 
 
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .main-content {
        margin-left: 0;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
}
