/* ===========================================
    GPA Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.gpa-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.gpa-form {
    padding: 20px; 
    border: 1px solid #B3E5FC; /* Light Blue Border */
    border-radius: 8px;
    background-color: #F7FFFF; /* Very Light Blue/White Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.gpa-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #03A9F4; /* Light Blue */
    border-bottom: 2px solid #B3E5FC;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- 1. Standard GPA Calculator Inputs --- */

/* Course Row Grid */
.gpa-course-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 15px; /* Course Name | Credits | Grade | Delete Button */
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.gpa-course-grid label {
    font-weight: 600;
    color: #546E7A;
    font-size: 0.9rem;
}

.gpa-course-row input[type="text"] {
    padding: 8px;
    border: 1px solid #90CAF9;
    border-radius: 4px;
    font-size: 0.9rem;
}
.gpa-course-row input[type="number"], .gpa-course-row select {
    padding: 8px;
    border: 1px solid #90CAF9;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.gpa-course-row .delete-btn {
    background: none;
    border: none;
    color: #F44336;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Add Course Button */
#addCourseBtn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #29B6F6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
#addCourseBtn:hover {
    background-color: #0288D1;
}

/* --- 2. GPA Planning Calculator Inputs --- */
.gpa-planning-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px 2%;
}
.gpa-planning-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 150px;
    display: flex;
    flex-direction: column;
}
.gpa-planning-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 6px;
}
.gpa-planning-group input {
    padding: 10px;
    border: 1px solid #03A9F4;
    border-radius: 6px;
    font-size: 1rem;
    text-align: right;
}

.gpa-planning-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.gpa-planning-buttons button {
    flex-grow: 1;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
#planCalculateBtn {
    background-color: #03A9F4;
    color: white;
    border: none;
}
#planClearBtn {
    background-color: #CFD8DC;
    color: #333;
    border: 1px solid #B0BEC5;
}


/* --- Results Display --- */
.gpa-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #4FC3F7; 
    border-radius: 8px;
    background-color: #E1F5FE; /* Lightest Blue */
    text-align: center;
}
.gpa-results-title {
    color: #03A9F4;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #B3E5FC;
    padding-bottom: 5px;
}
.gpa-results-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #FFC107; /* Amber for contrast */
}
.gpa-results-label {
    font-size: 1rem;
    font-weight: 600;
    color: #546E7A;
    margin-top: 5px;
}


/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .gpa-course-grid {
        grid-template-columns: 1fr 1fr 1fr; /* Course Name | Credits | Grade (Remove delete column for simplicity) */
        gap: 8px;
    }
    .gpa-course-grid label:last-child {
        display: none; /* Hide 'Grade' label if space is tight */
    }
    .gpa-planning-group {
        flex-basis: 100%; /* Stack inputs on small screens */
    }
    .gpa-planning-buttons {
        flex-direction: column;
    }
}


/* ... (Existing CSS code above) ... */

/* Button Styles (Specific to GPA Calculator) */
.gpa-calculate-btn {
    display: block;
    width: 100%;
    padding: 14px; 
    margin-top: 25px; 
    background-color: #03A9F4; /* Primary Light Blue */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.gpa-calculate-btn:hover {
    background-color: #0288D1; /* Darker Blue on hover */
}

/* ... (Existing CSS code below) ... */