body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
}

.panel {
    display: none !important;
}

.panel.active {
    display: flex !important;
}

.loading-spinner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Hide scrollbar but keep functionality */
body::-webkit-scrollbar,
#result-screen::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

body,
#result-screen {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Smooth transitions */
button {
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

/* Custom focus styles */
input:focus,
button:focus {
    outline: none;
}

/* Ensure proper display for flex items */
.panel.active {
    display: flex !important;
}

#start-screen.active,
#loading-screen.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#exam-screen.active {
    display: flex !important;
    flex-direction: column;
}

#result-screen.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}