/* GPA Calculator Specific Styles */

/* Course Container Styles */
.course-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Course Actions Styles */
.course-actions {
    margin-top: 16px;
}

/* Course Row Styles */
.course-row {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 16px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.course-header h3 {
    font-size: 16px;
    color: #003049;
    font-weight: 500;
}

.course-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

/* Input Group Styles */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #003049;
}

/* Select dropdown styling */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003049' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

select.form-input:hover {
    border-color: #003049;
    background-color: #f8fafc;
}

select.form-input:focus {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
    outline: none;
}

/* Button Styles */
.btn {
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-primary {
    background-color: #003049;
    color: white;
}

.btn-primary:hover {
    background-color: #00273d;
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-add {
    background-color: white;
    border: 2px dashed #003049;
    color: #003049;
    margin-bottom: 8px;
}

.btn-add:hover {
    background-color: #f0f9ff;
    border-style: solid;
}

.btn-remove {
    background-color: transparent;
    color: #ef4444;
    padding: 4px 8px;
    font-size: 20px;
    line-height: 1;
    border: none;
    width: auto;
    min-height: auto;
}

.btn-remove:hover {
    background-color: #fee2e2;
    border-radius: 4px;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

/* Results section title */
.results-section-title {
    color: #003049;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Total GPA styling */
.total-gpa {
    font-size: 18px;
    font-weight: 600;
    color: #003049;
}

/* Course Breakdown Styles */
.course-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.course-detail {
    background: white;
    border-radius: 4px;
    padding: 12px;
    border: 1px solid #bae6fd;
}

.course-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.course-name {
    font-weight: 600;
    color: #003049;
}

.course-detail-badge {
    background-color: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.course-detail-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    color: #4b5563;
}

.course-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-detail-label {
    font-size: 14px;
    color: #6b7280;
}

.course-detail-value {
    font-weight: 500;
    color: #003049;
}

/* FAQ Wrapper Styles */
.faq-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    position: relative;
    margin-top: 20px;
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 0;
}

.faq-section h2 {
    color: #003049;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .course-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .course-detail-content {
        grid-template-columns: 1fr 1fr;
    }

    .faq-wrapper {
        padding: 16px;
    }

    .faq-section {
        padding: 0;
        margin-top: 24px;
    }

    .faq-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
}
