/* frontend-style.css */

/*
* This file provides the core styling for the Live Exam plugin's frontend.
* It uses a combination of basic CSS and Tailwind CSS-like classes for a clean, responsive design.
*/

/* --- Basic Structure and Layout --- */
.live-exam-container {
    font-family: 'Inter', sans-serif;
    color: #334155; /* slate-700 */
    background-color: #f8fafc; /* slate-50 */
    min-height: 100vh;
    padding: 24px; /* p-6 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.live-exam-container header {
    width: 100%;
    max-width: 1280px; /* max-w-screen-xl */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px; /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.live-exam-container header h1 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #0f172a; /* slate-900 */
}

/* --- Timer Style --- */
#timer {
    display: flex;
    align-items: center;
    gap: 8px; /* gap-2 */
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #ef4444; /* red-500 */
}

/* --- Main Content Layout --- */
.live-exam-container main {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    gap: 24px; /* gap-6 */
}

@media (min-width: 768px) {
    .live-exam-container main {
        flex-direction: row;
    }
}

/* --- Question Content Area --- */
.question-content-area {
    flex-grow: 1;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.question-content-area h2 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* gray-800 */
    margin-top: 16px; /* mt-4 */
}

/* --- Navigation Buttons --- */
.question-content-area .mt-8 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px; /* gap-4 */
    margin-top: 32px; /* mt-8 */
}

.question-content-area button {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Question Palette --- */
#question-palette {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px; /* gap-3 */
}

.question-nav-btn {
    padding: 12px 0;
    text-align: center;
    border-radius: 9999px; /* rounded-full */
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.2s;
    cursor: pointer;
}

/* Question Palette Status Colors */
.question-nav-btn.bg-blue-600 {
    background-color: #2563eb;
    border-color: #2563eb;
}
.question-nav-btn.bg-green-500 {
    background-color: #22c55e;
    border-color: #22c55e;
}
.question-nav-btn.bg-yellow-500 {
    background-color: #eab308;
    border-color: #eab308;
}
.question-nav-btn.bg-gray-100 {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

/* --- Mobile Navigation --- */
.question-numbers-mobile-nav {
    display: flex;
    overflow-x: auto;
    gap: 12px; /* gap-3 */
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}
.question-numbers-mobile-nav::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}
@media (min-width: 768px) {
    .question-numbers-mobile-nav {
        display: none;
    }
}
