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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
}

.school-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.school-logo {
    width: 90px;
    height: auto;
}

header h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-btn {
    padding: 10px 30px;
    border: none;
    background: #e0e0e0;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
}

.nav-btn.active {
    background: #667eea;
    color: white;
}

main {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

h2 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.filters select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
}

.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.syllabus-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.syllabus-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.syllabus-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.syllabus-card p {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
}

.syllabus-card .grade-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

.syllabus-card .group-badge {
    display: inline-block;
    background: #764ba2;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: 5px;
    margin-bottom: 10px;
}

.status-uploaded,
.status-pending {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: 5px;
    margin-bottom: 10px;
}

.status-uploaded {
    background: #2ecc71;
    color: white;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.syllabus-card .actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-primary, .btn-danger {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd6;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

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

.upload-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.upload-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

#upload-message {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

.upload-alert {
    text-align: left;
    padding: 16px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
}

.upload-alert__title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 6px;
}

.upload-alert__desc {
    font-size: 14px;
    line-height: 1.5;
}

.upload-alert--success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.upload-alert--error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.upload-alert--loading {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #bbdefb;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.empty-state p {
    font-size: 18px;
}

.admin-toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.summary-card {
    background: #f3f4ff;
    border: 1px solid #dfe3ff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.summary-card h3 {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.summary-card p {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.summary-uploaded {
    background: #eafaf1;
    border-color: #bde5cf;
}

.summary-pending {
    background: #fff7e8;
    border-color: #f3ddb0;
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.admin-filters select,
.admin-filters input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.admin-filters .btn-primary {
    width: 100%;
}
