/* Test Pages Shared Styles */

/* Common Card Styles */
.test-card, .consent-card, .question-card, .result-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Bootstrap card overrides for test pages */
.card.test-card {
    padding: 0;
    margin: 2rem 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card.test-card .card-body {
    padding: 2rem;
}

.card.test-card .card-header {
    border: none;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
}

/* Legacy card styles for non-Bootstrap cards */
.consent-card, .question-card, .result-card {
    padding: 2rem;
    margin: 2rem 0;
}

/* Theme Colors and Gradients */
.bg-test {
    background: linear-gradient(135deg, #2196F3, #64B5F6) !important;
}

.title-section {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.section-title {
    color: #2196F3;
    font-weight: 600;
    margin: 2rem 0 1.5rem 0;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Typography */
.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Buttons */
.btn-test {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-test:hover {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
    color: white;
}

/* Info Sections */
.test-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2196F3;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.test-info-icon {
    color: #2196F3;
    margin-right: 0.5rem;
    width: 16px;
}

.info-label {
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 70px;
}

.info-value {
    color: #495057;
}

/* Category Badges */
.evaluation-categories h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-category {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 1rem;
}

.bg-category-a {
    background-color: #e3f2fd;
    color: #1565c0;
}

.bg-category-b {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.bg-category-c {
    background-color: #e8f5e8;
    color: #2e7d32;
}

/* Common Layout Elements */
.screen {
    min-height: calc(100vh - 120px);
}

.test-overview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.overview-item {
    text-align: center;
}

.overview-item i {
    font-size: 2rem;
    color: #2196F3;
    margin-bottom: 0.5rem;
}

.overview-item .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.overview-item .label {
    font-size: 0.9rem;
    color: #666;
}

/* Additional Bootstrap utility overrides if needed */
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .test-card, .consent-card, .question-card, .result-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card.test-card .card-body {
        padding: 1.5rem;
    }
    
    .card.test-card {
        margin-bottom: 1.5rem;
    }
}