/* GPA Calculator Styles */
/* GPA Calculator Table Styles */
.gpa-table {
    margin: 0.5rem 0 0.5rem 0;
    width: 100%;
    border-collapse: collapse;
    background: #f7f7f7;
    border-radius: 6px;
    overflow: hidden;
}
.gpa-table th, .gpa-table td {
    padding: 0.25rem 0.4rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}
.gpa-table th {
    background: #e3eafc;
    font-weight: 700;
}
.gpa-table tr:last-child td {
    border-bottom: none;
}
.gpa-table input[type="text"], .gpa-table input[type="number"], .gpa-table select {
    width: 95%;
    padding: 0.15rem 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.98rem;
    box-sizing: border-box;
}
.gpa-actions {
    margin: 0.2rem 0 0.7rem 0;
    text-align: left;
}
.gpa-add {
    color: #1976d2;
    text-decoration: underline;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 0.1rem;
}
.gpa-add:hover {
    text-decoration: none;
}
.gpa-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-items: center;
}
.gpa-calc {
    background: #388e3c;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1.3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.gpa-calc:hover {
    background: #256b28;
}
.gpa-calc-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.3em;
    background: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><polygon points="10,8 16,12 10,16" fill="green"/></svg>') no-repeat center center/contain;
    vertical-align: middle;
}
.gpa-clear {
    background: #bdbdbd;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.gpa-clear:hover {
    background: #888;
}
#gpaResult {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1976d2;
}

#gpaError {
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Mobile improvements for GPA Calculator */
@media (max-width: 768px) {
    .gpa-table {
        font-size: 0.9rem;
    }
    
    .gpa-table th, .gpa-table td {
        padding: 0.6rem 0.3rem;
    }
    
    .gpa-table input[type="text"], 
    .gpa-table input[type="number"], 
    .gpa-table select {
        width: 100%;
        padding: 0.5rem;
        font-size: 1rem;
        min-height: 40px;
    }
    
    .gpa-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .gpa-calc, .gpa-clear {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        min-height: 44px;
    }
    
    #gpaResult {
        font-size: 1.3rem;
        text-align: center;
        padding: 1rem;
        background: #f0f8ff;
        border-radius: 8px;
        border: 1px solid #1976d2;
    }
    
    .gpa-add {
        font-size: 1.1rem;
        padding: 0.5rem;
        display: inline-block;
        min-height: 44px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .gpa-table {
        font-size: 0.8rem;
    }
    
    .gpa-table th, .gpa-table td {
        padding: 0.4rem 0.2rem;
    }
    
    .gpa-table input[type="text"], 
    .gpa-table input[type="number"], 
    .gpa-table select {
        padding: 0.6rem 0.3rem;
        font-size: 0.9rem;
    }
}
