* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: #e74c3c;
    background-color: #f8f9fa;
}

/* Main content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    margin: 3rem 0 4rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.highlight {
    color: #ff6b6b;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Curriculum section */
.curriculum-section {
    margin: 3rem 0;
}

.curriculum-section h2 {
    color: #e74c3c;
    font-size: 2.5rem;
    margin: 2rem 0 1rem 0;
    text-align: center;
    font-weight: 600;
}

.curriculum-section h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem 0;
    text-align: center;
    color: #333;
    font-weight: 500;
}

/* Table styles */
.subjects-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #2c3e50;
    color: white;
}

th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Subject name styling */
td:first-child {
    font-weight: 500;
    color: #2c3e50;
}

/* Code column styling */
td:nth-child(2) {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.action-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.action-link:hover {
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
}

/* N/A styling */
td:contains("N/A") {
    color: #6c757d;
    font-style: italic;
}

/* Login form styles */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #e74c3c;
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.text-center {
    text-align: center;
    margin-top: 1.5rem;
}

.text-center a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .subjects-table {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Logo styling */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.tech {
    color: #e74c3c;
}

/* N/A text styling */
.na-text {
    color: #6c757d;
    font-style: italic;
    font-weight: normal;
}

/* Better spacing and formatting */
.curriculum-section {
    margin: 3rem 0;
}

.year-title {
    color: #e74c3c;
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    text-align: center;
    font-weight: 600;
}

.subject-category {
    margin: 2rem 0;
}

.category-title {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    text-align: center;
    color: #333;
    font-weight: 500;
}

/* Table improvements */
.subjects-table {
    margin: 1rem 0 3rem 0;
}

.subject-name {
    font-weight: 500;
    color: #2c3e50;
}

.subject-code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Better spacing between sections */
.subject-category:not(:last-child) {
    margin-bottom: 3rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .year-title {
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
}