body {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    padding-top: 30px;
    min-height: 100vh;
    transition: background 0.5s;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
    padding: 40px 30px 30px 30px;
    margin-bottom: 30px;
    max-width: 900px;
    animation: fadeIn 0.8s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    text-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
}

.level-container {
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    padding: 28px 18px 18px 18px;
    margin-bottom: 30px;
    border: none;
    transition: box-shadow 0.3s;
}

.level-container:hover {
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.13);
}

.table th, .table td {
    vertical-align: middle;
}

.form-select {
    border-radius: 5px;
}

.btn-primary {
    background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0056b3 0%, #00b4d8 100%);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
}

.btn-success {
    background: linear-gradient(90deg, #28a745 0%, #43e97b 100%);
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.08);
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-success:hover {
    background: linear-gradient(90deg, #218838 0%, #38ef7d 100%);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.15);
}

.gpa-result {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 18px;
    color: #007bff;
    text-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
    letter-spacing: 1px;
    animation: fadeIn 0.7s;
}

.pass-grade {
    color: #28a745;
}

.fail-grade {
    color: #dc3545;
}

.gpa-info {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 10px;
    min-height: 32px;
}

.disabled-input {
    background-color: #e9ecef;
}

.footer-note {
    color: #888;
    font-size: 1rem;
}