/* Custom Styles for Exam Management System */

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
    background: linear-gradient(to right, #9333EA, #3B82F6);
    color: white;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4);
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    text-align: center;
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: #9333EA;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #E5E7EB;
    margin: 0 1rem;
    position: relative;
    top: -20px;
}

.step-line.active {
    background: linear-gradient(to right, #9333EA, #3B82F6);
}

/* Document Card Styles */
.doc-card {
    transition: all 0.3s ease;
}

.doc-card input[type="checkbox"]:checked ~ * .check-icon {
    display: block !important;
}

.doc-card:has(input[type="checkbox"]:checked) {
    border-color: #9333EA;
    background: #F3E8FF;
}

/* Filter Button Styles */
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    color: #6B7280;
}

.filter-btn.active {
    background: linear-gradient(to right, #9333EA, #3B82F6);
    color: white;
}

.filter-btn:not(.active):hover {
    background: #F3F4F6;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in-out;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #F3F4F6;
    border-top: 4px solid #9333EA;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .step-indicator {
        font-size: 0.75rem;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-line {
        margin: 0 0.5rem;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #9333EA, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge Animations */
.badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Custom Radio/Checkbox Styles */
input[type="radio"]:checked + span,
input[type="checkbox"]:checked + span {
    font-weight: 600;
}

/* Exam Timer Styles */
.exam-timer {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.exam-timer.warning {
    animation: pulse 1s infinite;
}

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

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }
}
