.gpa-calculator-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f0f4ff, #e0eaff);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
}
.gpa-calculator-container h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#course-rows {
    display: grid;
    gap: 15px;
}
.course-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.course-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.course-name, .grade, .credits {
    padding: 1px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.course-name:focus, .grade:focus, .credits:focus {
    border-color: #0984e3;
    box-shadow: 0 0 8px rgba(9, 132, 227, 0.3);
    outline: none;
}
.grade {
    background: #f1f2f6;
    cursor: pointer;
}
.credits {
    text-align: center;
}
.remove-course {
    background: linear-gradient(45deg, #ff7675, #d63031);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}
.remove-course:hover {
    background: linear-gradient(45deg, #d63031, #ff7675);
}
#add-course {
    background: linear-gradient(45deg, #00cec9, #0984e3);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: background 0.3s, transform 0.2s;
}
#add-course:hover {
    background: linear-gradient(45deg, #0984e3, #00cec9);
    transform: scale(1.05);
}
#calculate-gpa {
    background: linear-gradient(45deg, #55efc4, #00b894);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: background 0.3s, transform 0.2s;
}
#calculate-gpa:hover {
    background: linear-gradient(45deg, #00b894, #55efc4);
    transform: scale(1.05);
}
#gpa-result {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: #ffffff;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #ff7675, #0984e3) 1;
    border-radius: 12px;
    animation: fadeIn 0.5s ease-in;
}
#gpa-result h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #2d3436;
}
#gpa-value {
    color: #d63031;
    font-weight: bold;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .course-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .gpa-calculator-container {
        margin: 15px;
        padding: 15px;
    }
    .gpa-calculator-container h2 {
        font-size: 1.5rem;
    }
    #gpa-result h3 {
        font-size: 1.4rem;
    }
}
@media (max-width: 480px) {
    .course-name, .grade, .credits {
        font-size: 0.9rem;
        padding: 10px;
    }
    .remove-course, #add-course, #calculate-gpa {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}