/* Diagnosis Page Custom Styles */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Screen transitions */
.screen-enter {
    animation: fadeIn 0.5s ease-out;
}

.question-enter {
    animation: slideIn 0.3s ease-out;
}

/* Answer button effects */
.answer-btn {
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.answer-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Selected answer style */
.answer-selected {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

.answer-selected .fa-circle-check {
    color: #3b82f6 !important;
}

/* Progress bar animation */
.progress-animate {
    animation: shimmer 2s linear infinite;
    background: linear-gradient(
        to right,
        #3b82f6 0%,
        #10b981 50%,
        #3b82f6 100%
    );
    background-size: 1000px 100%;
}

/* Result type styles */
.result-type-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.result-type-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.result-type-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.result-type-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.result-type-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.result-type-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Score display */
.score-display {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Answer indicator dots */
.answer-indicator {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.3s;
}

.answer-indicator.yes {
    background-color: #10b981;
    color: white;
}

.answer-indicator.no {
    background-color: #ef4444;
    color: white;
}

.answer-indicator.unknown {
    background-color: #6b7280;
    color: white;
}

.answer-indicator.unanswered {
    background-color: #e5e7eb;
    color: #9ca3af;
}

/* Floating summary */
#answer-summary {
    max-height: 200px;
    transition: all 0.3s ease;
}

/* Result card animation */
.result-card {
    animation: fadeIn 0.8s ease-out;
}

/* Hover effects for buttons */
.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .score-display {
        font-size: 2rem;
    }
    
    .answer-indicator {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.625rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }
    
    header, #answer-summary, .no-print {
        display: none !important;
    }
    
    #result-screen {
        display: block !important;
    }
    
    .bg-gradient-to-r, .bg-gradient-to-br {
        background: #f3f4f6 !important;
    }
}