/* Main Styles for Health Screening Questionnaire */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tab-button {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #666;
}

.tab-button.active {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: #e0f2fe;
}

.tab-content {
    padding: 2rem;
}

.form-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 0.5rem;
}

.question-group {
    margin-bottom: 1rem;
}

.question-text {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #4b5563;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #3b82f6;
}

.interpretation-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #1f2937;
}

.interpretation-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.interpretation-box p {
    line-height: 1.6;
}

.disclaimer {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #d1d5db;
}

.button-action {
    background-color: #22c55e;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1.5rem;
    border: none;
}

.button-action:hover {
    background-color: #16a34a;
}

.input-text, .input-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #374151;
}

.input-text:focus, .input-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.flex-row > div {
    flex: 1 1 calc(50% - 0.5rem);
}

@media (max-width: 768px) {
    .flex-row > div {
        flex: 1 1 100%;
    }
}

/* Class-specific sections are now controlled by Vue.js v-if/v-show */
.class-specific-section {
    margin-top: 1rem; /* Add some spacing instead of display:none */
}

#loading-indicator {
    /* v-if/v-show will control visibility in Vue */
    text-align: center;
    margin-top: 1rem;
    color: #3b82f6;
    font-weight: 600;
}

#message-box {
    /* v-if/v-show will control visibility in Vue */
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

#message-box.success {
    background-color: #d1fae5;
    color: #065f46;
}

#message-box.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Header styles */
header.bg-blue-600 {
    background-color: #2563eb;
}

/* Tab navigation styles */
nav.flex {
    background-color: #f3f4f6;
}

/* Gender-specific sections now controlled by Vue.js v-if/v-show */
.gender-specific-section {
    margin-top: 1rem; /* Add some spacing instead of display:none */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}
