* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;  /* Increased from 1200px */
    margin: 0 auto;
    padding: 0 30px;
    flex: 1;
    width: 100%;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #333;
}

.nav-welcome {
    color: #667eea;
    font-weight: 500;
}

/* Footer */
.footer {
    background: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;  /* Increased from 0.25rem 0.5rem */
    font-size: 0.9rem;      /* Increased from 0.875rem */
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;     /* Increased from 3px */
    display: inline-block;
    margin: 2px;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;    /* Increased padding */
    border-radius: 8px;      /* Increased from 5px */
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Auth Pages */
.auth-container {
    max-width: 600px;        /* Increased from 400px */
    margin: 2rem auto;
    width: 100%;
    padding: 0 20px;
}

.auth-card {
    background: white;
    padding: 3rem;           /* Increased from 2rem */
    border-radius: 15px;      /* Increased from 10px */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);  /* Stronger shadow */
}

.auth-card h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;         /* Increased font size */
}

.auth-form .form-group {
    margin-bottom: 2rem;      /* Increased from 1.5rem */
}

.auth-form label {
    display: block;
    margin-bottom: 0.75rem;   /* Increased from 0.5rem */
    color: #555;
    font-weight: 600;         /* Increased from 500 */
    font-size: 1.1rem;        /* Added */
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 1rem 1.2rem;      /* Increased from 0.75rem */
    border: 2px solid #ddd;    /* Thicker border */
    border-radius: 8px;        /* Increased from 5px */
    font-size: 1.1rem;         /* Increased from 1rem */
    transition: all 0.3s;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.25);  /* Larger shadow */
}

.auth-link {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    background: white;
    padding: 2.5rem;          /* Increased from 2rem */
    border-radius: 15px;       /* Increased from 10px */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dashboard-container h1 {
    color: #333;
    margin-bottom: 2rem;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 1rem;
    font-size: 2.2rem;        /* Larger heading */
}

.dashboard-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Stats Cards - Made Larger */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  /* Increased from 200px */
    gap: 2rem;                /* Increased from 1.5rem */
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 2rem 1.5rem;      /* Increased from 1.5rem */
    border-radius: 12px;        /* Increased from 8px */
    text-align: center;
    border-left: 5px solid #667eea;  /* Thicker border */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card h3 {
    color: #666;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;         /* Increased from 1rem */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 3rem;            /* Increased from 2rem */
    font-weight: bold;
    color: #667eea;
    margin: 0;
    line-height: 1.2;
}

/* Forms - Made Much Larger */
.form-container {
    max-width: 1000px;          /* Increased from 800px */
    margin: 2rem 0;
}

.form-section {
    background: #f8f9fa;
    padding: 2.5rem;            /* Increased from 1.5rem */
    border-radius: 12px;        /* Increased from 8px */
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    color: #444;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.75rem;
    font-size: 1.5rem;          /* Larger heading */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;                  /* Increased from 1rem */
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;       /* Increased from 0.5rem */
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.25);
    outline: none;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.95rem;
}

.form-actions {
    text-align: center;
    margin-top: 3rem;
}

.form-actions .btn {
    padding: 1.2rem 3rem;       /* Larger button */
    font-size: 1.2rem;
    font-weight: 600;
}

/* Tables - Made Larger */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th {
    background: #f8f9fa;
    padding: 1.2rem 1rem;       /* Increased from 0.75rem */
    text-align: left;
    font-weight: 700;           /* Increased from 600 */
    color: #555;
    border-bottom: 3px solid #dee2e6;
    font-size: 1.1rem;
}

.data-table td {
    padding: 1.2rem 1rem;       /* Increased from 0.75rem */
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1rem;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Profile - Made Larger */
.profile-container {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.profile-header h2 {
    font-size: 2rem;
    color: #333;
}

.student-id-badge {
    background: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;    /* Increased padding */
    border-radius: 30px;         /* Increased from 20px */
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));  /* Increased from 300px */
    gap: 2rem;                  /* Increased from 1.5rem */
    margin-bottom: 2.5rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    width: 35%;                 /* Slightly reduced */
    text-align: left;
    padding: 1rem 0.5rem;       /* Increased padding */
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #e9ecef;
}

.info-table td {
    padding: 1rem 0.5rem;       /* Increased padding */
    color: #333;
    font-size: 1.1rem;
    border-bottom: 1px solid #e9ecef;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;      /* Increased padding */
    border-radius: 20px;         /* Increased from 12px */
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.enrolled {
    background: #d4edda;
    color: #155724;
}

.status-badge.graduated {
    background: #cce5ff;
    color: #004085;
}

.status-badge.dropped {
    background: #f8d7da;
    color: #721c24;
}

/* QR Section */
.qr-section {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 2rem;
}

.qr-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.qr-code {
    max-width: 250px;            /* Increased from 200px */
    height: auto;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border: 2px dashed #667eea;
    border-radius: 15px;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #f0f0f0;
}

.page-header h1 {
    font-size: 2.2rem;
    margin: 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Features Section */
.features-section {
    padding: 3rem 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #444;
}

.feature-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-buttons .btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Field Error Styling */
.field-error {
    color: #dc3545;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: block;
}

.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
}

.form-group input.error:focus,
.form-group select.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.25);
}

/* Selected Files */
.selected-files {
    margin-top: 1rem;
    padding: 1rem;
    background: #e9ecef;
    border-radius: 8px;
}

.selected-files p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.selected-files ul {
    margin-left: 1.5rem;
    color: #495057;
}

/* Disabled Button */
.btn-small.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}