/* Main Styles for Medical Device Cybersecurity Questionnaire RAG System */

/* Global Styles */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

/* Forms */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

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

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
}

/* Tables */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Questionnaire Status Badges */
.badge {
    padding: 6px 10px;
    font-weight: 500;
    border-radius: 4px;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* File Upload */
.file-upload-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-container:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.file-upload-container.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

/* Questionnaire Review */
.question-card {
    border-left: 4px solid #0d6efd;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.answer-card {
    border-left: 4px solid #28a745;
    padding: 15px;
    margin-top: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.source-card {
    border-left: 4px solid #6c757d;
    padding: 10px;
    margin-top: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .question-card {
        padding: 10px;
    }
}