/*
=====================================================
  STUDENT HEADER & PAGE STYLES
=====================================================
*/

/* Style the main header bar for student pages */
.student-header {
    background: #2c2b2b; /* CHANGE THIS: e.g., to white */
    color: #ffffff; /* CHANGE THIS: e.g., to a dark color for text */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* Optional: a softer shadow */
    border-bottom: 3px solid #0779e4; /* Optional: add a colored border */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* This controls the vertical spacing and layout inside the header */
.student-header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns logo to the left */
    height: 70px; /* CHANGE THIS: Adjust header height if needed */
}

/* Style the brand logo link (image + text) */
.student-header a.brand-logo {
    color: #ffffff; /* CHANGE THIS: Your new text color for the brand */
    font-size: 1.15rem; /* CHANGE THIS: Make it slightly smaller if you want */
    font-weight: 600;
    text-transform: none; /* CHANGE THIS: Removes the forced UPPERCASE */
}

/* This ensures the hover effect doesn't make the text white again */
.student-header .brand-logo:hover {
    color: #0779e4; /* CHANGE THIS: Your desired hover color */
    text-decoration: none;
    opacity: 1;
}

/* Style the actual logo image */
.student-header .logo {
    width: 50px; /* CHANGE THIS: Adjust logo size */
    margin-right: 12px;
}


/* Optional: Style the main content area for student pages differently */
.student-main {
    background-color: #f0f2f5; /* A slightly different background for the main area */
    /* Add any other overrides for the main content area here */
}

/*
=====================================================
  END OF STUDENT HEADER STYLES
=====================================================
*/


.play-quiz-container {
        max-width: 700px;
        margin: 20px auto;
        padding: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .question-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .timer-display {
        font-size: 1.2em;
        font-weight: bold;
        color: #d9534f;
    }

    .question-text {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    .question-image img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    .options-mcq .option {
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 4px;
        cursor: pointer;
    }

    .options-mcq .option:hover {
        background-color: #f9f9f9;
    }

    .options-mcq .option input[type="radio"] {
        margin-right: 10px;
    }

    .option-open-ended input[type="text"] {
        width: calc(100% - 22px);
        padding: 10px;
        font-size: 1em;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-top: 5px;
    }

    #submit_answer_btn {
        margin-top: 20px;
        width: 100%;
        padding: 12px;
        font-size: 1.1em;
    }

    .loader {
        border: 5px solid #f3f3f3;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
        margin: 10px auto;
    }

    .join_quiz_heading {
        margin: 0px !important;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }




    /* ===== CARD STYLE LEADERBOARD TABLE ===== */

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* satırlar arasında boşluq */
    font-family: "Arial", sans-serif;
    font-size: 16px;
}

/* Header */
.leaderboard-table thead th {
    text-align: left;
    padding: 12px;
    color: #555;
    font-weight: bold;
    font-size: 15px;
}

/* Kart görünüşlü sətirlər */
.leaderboard-table tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: 0.2s;
}

.leaderboard-table tbody tr:hover {
    background: #f7fbff;
}

/* Hüceyrə spacing */
.leaderboard-table th,
.leaderboard-table td {
    padding: 15px 18px;
}

/* Radius yalnız td-lərdə işləyir */
.leaderboard-table tbody tr td:first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.leaderboard-table tbody tr td:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Avatar + Nickname cell */
.player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Avatar icon */
.avatar-icon-leaderboard {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef2f5;
}

/* Medal icons */
.medal-icon {
    width: 26px;
    height: 26px;
    margin-left: 6px;
}

/* Current player highlight */
.current-player-highlight {
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.6) !important;
    background: #e8fff1 !important;
}

/* Mobile responsive (öz table-responsive-wrapper içində gözəl oturur) */
@media (max-width: 600px) {
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px;
        font-size: 14px;
    }

    .avatar-icon-leaderboard {
        width: 30px;
        height: 30px;
    }

    .medal-icon {
        width: 22px;
        height: 22px;
    }
}
