/* This file contains additional custom styles beyond Tailwind CSS */

/* For improved accessibility */
:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Custom scrollbar for browsers that support it */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Question status indicators for test interface */
.question-status {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-not-visited {
    background-color: #e5e7eb;
    color: #4b5563;
}

.status-current {
    background-color: #2563EB;
    color: white;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

.status-answered {
    background-color: #10B981;
    color: white;
}

.status-not-answered {
    background-color: #F59E0B;
    color: white;
}

.status-marked-for-review {
    background-color: #6366F1;
    color: white;
}

.status-answered-marked-for-review {
    background-color: #8B5CF6;
    color: white;
}

/* Custom checkbox styles */
.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.custom-checkbox:hover {
    background-color: #f9fafb;
}

.custom-checkbox.selected {
    border-color: #2563EB;
    background-color: rgba(37, 99, 235, 0.05);
}

/* Timer warning animation */
@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.timer-warning {
    animation: pulse-warning 1s ease-in-out infinite;
    color: #F59E0B;
}

.timer-danger {
    animation: pulse-warning 0.5s ease-in-out infinite;
    color: #EF4444;
}

/* Dark mode adjustments */
.dark .status-not-visited {
    background-color: #374151;
    color: #D1D5DB;
}

.dark .custom-checkbox {
    border-color: #374151;
}

.dark .custom-checkbox:hover {
    background-color: #1F2937;
}

.dark .custom-checkbox.selected {
    border-color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Toast notification styles */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(1rem);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background-color: #10B981;
    color: white;
}

.toast-error {
    background-color: #EF4444;
    color: white;
}

.toast-info {
    background-color: #2563EB;
    color: white;
}

.toast-warning {
    background-color: #F59E0B;
    color: white;
}

/* Progress steps for checkout process */
.progress-step {
    display: flex;
    align-items: center;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    height: 2px;
    width: 100%;
    background-color: #e5e7eb;
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translateY(-50%);
    z-index: -1;
}

.progress-step.completed:not(:last-child)::after {
    background-color: #10B981;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: #4b5563;
    margin-right: 0.5rem;
}

.progress-step.completed .step-circle {
    background-color: #10B981;
    color: white;
}

.progress-step.active .step-circle {
    background-color: #2563EB;
    color: white;
}
