/* Custom styles for Adaptive Learning Assessment */

.feature-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.explanation-box {
    background-color: var(--bs-light);
    border-left: 4px solid var(--bs-info);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--bs-dark) !important;
}

/* Light mode specific */
@media (prefers-color-scheme: light) {
    .explanation-box {
        background-color: #f8f9fa !important;
        color: #212529 !important;
    }
}

/* For Bootstrap dark theme data attribute */
[data-bs-theme="dark"] .explanation-box {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
    border-left-color: var(--bs-info);
}

.question-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.question-card:hover {
    border-color: var(--bs-primary);
}

.question-option {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-option:hover {
    background-color: var(--bs-light);
    border-color: var(--bs-primary);
}

.question-option.selected {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.question-option input[type="radio"] {
    margin-right: 0.5rem;
}

.style-indicator {
    display: flex;
    align-items: center;
}

.metric-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.style-guide .style-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

/* Print styles */
@media print {
    .btn, .navbar, .loading-overlay {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .explanation-box {
        background-color: var(--bs-dark);
        border-left-color: var(--bs-info);
        color: var(--bs-light) !important;
    }
    
    .question-option {
        background-color: var(--bs-dark);
        border-color: var(--bs-border-color);
        color: var(--bs-light);
    }
    
    .question-option:hover {
        background-color: var(--bs-secondary);
    }
    
    .metric-item {
        border-color: var(--bs-border-color);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .step-indicator {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .feature-icon {
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
}

/* Animation for progress transitions */
.progress-bar {
    transition: width 0.6s ease;
}

/* Custom focus styles for accessibility */
.question-option:focus-within {
    outline: 2px solid var(--bs-focus-ring-color);
    outline-offset: 2px;
}

/* Styling for badges in reports */
.badge {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Chart container styling */
canvas {
    max-width: 100%;
    height: auto;
}

/* Style feedback box */
#styleFeedback {
    border: 1px solid var(--bs-info);
    background-color: var(--bs-info-bg-subtle);
}

/* Error alert positioning */
.alert {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Assessment completion animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* Improved button hover effects */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}
