/* Hayaanshufiya Amirnet Test - Custom Styles */

/* Base styles */
body { font-family: 'Heebo', sans-serif; }
.font-english { font-family: 'Inter', sans-serif; }

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-slide-up { animation: slideUp 0.8s ease-out; }
.animate-bounce-in { animation: bounceIn 0.6s ease-out; }

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

/* Card styles */
.hayaan-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #F59E0B;
    color: #8B5E3C;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #F59E0B;
    color: white;
    transform: translateY(-2px);
}

/* Answer options */
.answer-option {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.answer-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.answer-option.selected {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

.option-letter {
    background: #E5E7EB;
    color: #6B7280;
    transition: all 0.3s ease;
}

.answer-option.selected .option-letter {
    background: #3b82f6;
    color: white;
}

/* Progress bar */
.progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.3s ease;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #22c55e;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

/* Fullscreen styles */
#hayaan-amirnet-wrapper:fullscreen {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #F59E0B 100%);
    padding: 2rem;
}

#hayaan-amirnet-wrapper:-webkit-full-screen {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #F59E0B 100%);
    padding: 2rem;
}

#hayaan-amirnet-wrapper:-moz-full-screen {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #F59E0B 100%);
    padding: 2rem;
}

#hayaan-amirnet-wrapper:-ms-fullscreen {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #F59E0B 100%);
    padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .answer-option { padding: 0.75rem !important; }
    .option-letter { width: 2rem !important; height: 2rem !important; font-size: 0.875rem !important; }
    .toast { right: 10px; left: 10px; transform: translateY(-100%); max-width: calc(100vw - 20px); }
    .toast.show { transform: translateY(0); }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .answer-option { padding: 1rem !important; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus styles */
button:focus, .answer-option:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Disabled state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}
