/**
 * Symptom Diagnostic CSS
 * Styling for car symptom diagnostic tool
 */

/* Symptom List Styling */
.symptom-list {
    list-style: none;
    padding-left: 0;
}

.symptom-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 2rem;
}

.symptom-list li:last-child {
    border-bottom: none;
}

.symptom-list li:before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #0d6efd;
}

/* Dark mode support */
[data-bs-theme="dark"] .symptom-list li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Symptom Diagnostic Container */
.symptom-diagnostic-container .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.symptom-diagnostic-container .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Severity Badge Colors */
.border-danger {
    border-width: 2px !important;
}

.border-warning {
    border-width: 2px !important;
}

.border-info {
    border-width: 2px !important;
}

.border-success {
    border-width: 2px !important;
}

.border-primary {
    border-width: 2px !important;
}

/* Loading State */
#loadingState {
    min-height: 300px;
}

/* Textarea Styling */
#symptoms {
    resize: vertical;
    min-height: 120px;
}

#symptoms:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Quick Tips List */
#placeholderMessage .list-unstyled li {
    padding: 0.5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .symptom-diagnostic-container h1 {
        font-size: 1.75rem;
    }

    .symptom-diagnostic-container .display-6 {
        font-size: 1.5rem;
    }
}

/* Fetch Vehicle Button */
#fetchVehicleBtn {
    min-width: 100px;
}

#fetchVehicleBtn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sticky Form */
.sticky-top {
    z-index: 100;
}

/* CTA Buttons */
.symptom-diagnostic-container .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.symptom-diagnostic-container .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Category Selector */
#symptom_category {
    cursor: pointer;
}

/* Form Labels */
.form-label.fw-bold {
    color: #212529;
}

[data-bs-theme="dark"] .form-label.fw-bold {
    color: #f8f9fa;
}

/* Preliminary Diagnosis Highlight */
.symptom-diagnostic-container .lead {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Print Styles */
@media print {
    .sticky-top,
    .btn,
    .nav,
    .footer {
        display: none !important;
    }

    .symptom-diagnostic-container {
        max-width: 100%;
    }

    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }

    #placeholderMessage {
        display: none !important;
    }
}

/* Info Alert Styling */
.alert-info {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

[data-bs-theme="dark"] .alert-info {
    background-color: #031633;
    border-color: #084298;
    color: #6ea8fe;
}

/* Vehicle Info Section */
#vehicleInfoSection {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] #vehicleInfoSection {
    background-color: #212529;
}
