/* GWA Calculator Plugin */
.gwa-calc-wrap *,
.gwa-calc-wrap *::before,
.gwa-calc-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gwa-calc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 600px;
}

/* Table */
.gwa-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

#gwaCoursesTable {
    width: 100%;
    border-collapse: collapse;
}

#gwaCoursesTable thead tr {
    background: #f7f8fc;
    border-bottom: 2px solid #dce3e8;
}

#gwaCoursesTable th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #32325d;
    font-size: 0.9em;
    white-space: nowrap;
}

#gwaCoursesTable td {
    padding: 10px 14px;
    border-bottom: 1px solid #eef0f5;
}

/* Inputs */
.gwa-calc-wrap input[type="text"],
.gwa-calc-wrap input[type="number"] {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #dce3e8;
    border-radius: 6px;
    font-size: 0.9em;
    color: #32325d;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    box-shadow: none;
}

.gwa-calc-wrap input[type="text"]:focus,
.gwa-calc-wrap input[type="number"]:focus {
    border-color: #5e72e4;
    box-shadow: 0 0 0 3px rgba(94,114,228,0.12);
}

/* Remove button */
.gwa-btn-remove {
    background: #fff0f0;
    color: #dc3545;
    border: 1px solid #f5c6cb;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}

.gwa-btn-remove:hover {
    background: #fdd;
}

/* Add Course button */
.gwa-btn-add {
    display: inline-block;
    background: #2dce89;
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 16px;
    transition: background 0.2s, transform 0.15s;
}

.gwa-btn-add:hover {
    background: #26b967;
    transform: translateY(-1px);
}

/* Calculate / Reset row */
.gwa-button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.gwa-btn-calculate {
    flex: 1;
    background: #5e72e4;
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.gwa-btn-calculate:hover {
    background: #4c63d2;
    transform: translateY(-1px);
}

.gwa-btn-reset {
    background: #e9ecef;
    color: #32325d;
    border: none;
    padding: 13px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.2s;
}

.gwa-btn-reset:hover {
    background: #dee2e6;
}

/* Results */
.gwa-hidden {
    display: none !important;
}

.gwa-result-container {
    background: #f7f8fc;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    padding: 16px 20px;
    animation: gwaFadeIn 0.3s ease;
}

@keyframes gwaFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gwa-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f5;
}

.gwa-result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gwa-result-item:first-child {
    padding-top: 0;
}

.gwa-label {
    font-weight: 600;
    color: #32325d;
    font-size: 0.95em;
}

.gwa-value {
    font-weight: 700;
    font-size: 1.05em;
    color: #5e72e4;
}

/* Responsive */
@media (max-width: 480px) {
    #gwaCoursesTable th,
    #gwaCoursesTable td {
        padding: 8px 8px;
        font-size: 0.85em;
    }

    .gwa-button-group {
        flex-direction: column;
    }
}
