/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('assets/background.jpg') center/cover no-repeat fixed;
    color: #333;
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Forms */
.login-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.logo-section {
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-form h2 {
    color: #2c5aa0;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-form p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #2c5aa0;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #2c5aa0, #1e3d72);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

.error, .success {
    padding: 12px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.admin-link, .student-link {
    margin-top: 20px;
}

.admin-link a, .student-link a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
}

.admin-link a:hover, .student-link a:hover {
    text-decoration: underline;
}

/* Student Dashboard */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.header-logo {
    width: 80px;
    height: auto;
}

.header h1 {
    color: #2c5aa0;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.student-info {
    text-align: center;
    flex-grow: 1;
}

.student-info h2 {
    color: #333;
    margin-bottom: 5px;
}

.student-info p {
    color: #666;
    margin: 0;
}

.passport-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c5aa0;
    margin-left: 20px;
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 15px 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
}

.school-name {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.school-name h3 {
    color: #2c5aa0;
    font-size: 24px;
    margin-bottom: 5px;
}

.school-name p {
    color: #666;
    font-size: 16px;
}

.session-selector {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.selector-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.selector-form label {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}.selector-form select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    min-width: 150px;
}

.results-container {
    margin-top: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c5aa0;
}

.results-header h3 {
    color: #2c5aa0;
    margin: 0;
}

.gpa-display {
    background: #2c5aa0;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
}

.last-updated {
    color: #666;
    font-size: 14px;
}

.results-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.results-table, .grade-key-table, .class-key-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-table th, .results-table td,
.grade-key-table th, .grade-key-table td,
.class-key-table th, .class-key-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th,
.grade-key-table th,
.class-key-table th {
    background: linear-gradient(45deg, #2c5aa0, #1e3d72);
    color: white;
    font-weight: bold;
}

.results-table tr:nth-child(even) {
    background: #f8f9fa;
}

.results-table tr:hover {
    background: #e3f2fd;
}

.grade-key, .class-key {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.grade-key h4, .class-key h4 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

.grade-key-table, .class-key-table {
    font-size: 14px;
}

.grade-key-table td, .class-key-table td {
    border: none;
    padding: 8px 0;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
}

.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.btn-export, .btn-contact {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-export:hover, .btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.footer {
    text-align: center;
    padding: 20px;
    background: #2c5aa0;
    color: white;
    margin-top: 30px;
    border-radius: 0 0 15px 15px;
}

.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.logout-btn:hover {
    background: #c82333;
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c5aa0 0%, #1e3d72 100%);
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
}

.admin-header h2 {
    margin-bottom: 10px;
    color: white;
}

.admin-header p {
    opacity: 0.9;
    font-size: 14px;
}

.admin-nav {
    margin-top: 30px;
}

.nav-link {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.admin-main {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
}

.admin-header-bar {
    background: rgba(255,255,255,0.95);
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header-bar h1 {
    color: #2c5aa0;
    margin: 0;
}

.session-admin-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}.session-admin-selector label {
    font-weight: bold;
    color: #333;
}

.session-admin-selector select {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-card {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-card h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.btn-admin, .btn-edit, .btn-delete, .btn-cancel {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s;
}

.btn-admin {
    background: linear-gradient(45deg, #2c5aa0, #1e3d72);
    color: white;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

.btn-edit {
    background: #ffc107;
    color: #333;
}

.btn-edit:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #545b62;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table th {
    background: linear-gradient(45deg, #2c5aa0, #1e3d72);
    color: white;
    padding: 15px;
    text-align: left;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.admin-table tr:nth-child(even) {
    background: #f8f9fa;
}

.admin-table tr:hover {
    background: #e3f2fd;
}

.admin-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.csv-format {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    border-left: 4px solid #2c5aa0;
}

/* Contact Page */
.contact-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-details {
    margin: 30px 0;
}

.contact-details h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
}

.phone-numbers {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.phone-link {
    display: block;
    color: #2c5aa0;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s;
}

.phone-link:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
}

.contact-info p {
    margin: 10px 0;
    font-size: 16px;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #2c5aa0, #1e3d72);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-form {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .passport-photo {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .selector-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .admin-header-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .session-admin-selector {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .results-table, .admin-table {
        font-size: 14px;
    }
    
    .results-table th, .results-table td,
    .admin-table th, .admin-table td {
        padding: 8px 5px;
    }
} 