/**
 * CGPA Calculator Styles - Additional/Override styles
 */

/* Action buttons */
.reset-form-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    flex: 1;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-form-btn:hover {
    background-color: #e2e6ea;
    color: #495057;
}

/* Course name input field styles */
.course-name {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.course-name:focus {
    border-color: #006699;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 153, 0.2);
}

/* Highlight effect for results */
.highlight {
    animation: highlight-pulse 1.5s ease-in-out;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 153, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 102, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 153, 0); }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .course-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .course-name, 
    .course-credit, 
    .course-grade {
        width: 100%;
    }
    
    .cgpa-action-buttons {
        flex-direction: column;
    }
    
    .calculate-cgpa-btn,
    .reset-form-btn {
        width: 100%;
    }
}

/* Form validation styles */
.input-error {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
} 