@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --bg: #121212;
    --fg: #ffffff;
    --card-bg: #1e1e1e;
    --accent: #1B75BB;
    --muted: #888;
    --font: 'Inter', sans-serif;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--fg);
    user-select: none;
}

main {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1366px;
    margin: 0 auto;
    width: 100%;
}

header {
    background-color: var(--card-bg);
    font-weight: 700;
    color: var(--fg);
    border-bottom: 1px solid #333;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    header a {
        text-decoration: none;
        color: var(--fg);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    header nav {
        display: flex;
        width: 1366px;
        justify-content: space-between;
    }

.nav-left {
    line-height: 0;
}

.nav-left img {
    width: 250px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .nav-right a {
        font-size: 0.95rem;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        transition: background-color var(--transition);
    }

        .nav-right a:hover {
            background-color: var(--accent);
            color: var(--bg);
        }

.nav-username {
    font-size: 0.9rem;
    color: var(--muted);
    margin-right: 0.5rem;
}

button, a {
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}

a {
    color: var(--accent);
    text-decoration: none;
}

select {
    border: 1px solid #fff;
    padding: 15px;
    border-left: 10px solid #fff;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 2rem;
    text-align: center;
}

.home-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fg);
}

.home-intro span {
    color: var(--accent);
}

.home-intro p {
    color: #aaa;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.home-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.home-hello {
    font-size: 1.2rem;
    font-weight: 500;
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

    .home-buttons a {
        padding: 0.75rem 1.5rem;
        background-color: var(--card-bg);
        color: var(--fg);
        text-decoration: none;
        border-radius: 8px;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }

        .home-buttons a:hover {
            background-color: var(--accent);
            color: var(--bg);
        }

        .home-buttons a.danger {
            background-color: #a94442;
        }

            .home-buttons a.danger:hover {
                background-color: #d9534f;
                color: #fff;
            }

        .home-buttons a.accent {
            background-color: var(--accent);
            color: var(--bg);
        }

.views-header {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1em;
    align-items: center;
    gap: 1em;
}

.section-title {
    
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-header p {
    color: var(--muted);
    margin-top: 0.25rem;
}

.dashboard-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    min-width: 150px;
    text-align: center;
    flex: 1;
}

.stat-title {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
}

.dashboard-chart h2,
.dashboard-actions h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.dashboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

    .dashboard-links a {
        background-color: var(--card-bg);
        color: var(--fg);
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        transition: var(--transition);
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

        .dashboard-links a:hover {
            background-color: var(--accent);
            color: var(--bg);
        }

.welcome-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    border: 1px solid #333;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    animation: fadeOut 4s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

.dashboard-layout {
    display: flex;
    flex-direction: row;
    gap: 1em;
    width: 100%;
}

.dashboard-nav {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 2rem;
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

    .dashboard-nav a {
        padding: 9px 12px;
        transition: background-color 0.3s ease;
        font-size: 25px;
        text-align: center;
        color: #fff;
        background: var(--bg);
        border-radius: 50%;
    }

        .dashboard-nav a:hover {
            background-color: var(--accent);
        }

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.dashboard-main2 {
    flex: 1;
    display: flex;
    gap: 1em;
}

.dbmain-left {
    display: flex;
    flex-direction: column;
    gap: 1em;
    flex: 1;
}

.dbmain-right {
    display: flex;
    flex-direction: column;
    gap: 1em;
    flex: 1;
}

.exam-reports-section {
    background-color: var(--card-bg);
    padding: 1em;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.exam-reports-scroller {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.exam-report-card {
    background: var(--bg);
    border: 1px solid var(--bg);
    border-radius: 10px;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    cursor: pointer;
    color: #fff;
    user-select: none;
    transition: 0.5s;
}

    .exam-report-card:hover {
        border: 1px solid var(--accent);
    }

.exam-report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.exam-report-body {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.profile-icon {
    font-size: 40px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.full-name {
    font-weight: bold;
}

.report-date {
    display: unset;
    color: gray;
}

.report-info {
    background: var(--card-bg);
    padding: 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: auto;
}

.report-comment {
    display: unset;
    font-size: 20px;
    font-style: italic;
}

.incomplete-tests {
    background-color: var(--card-bg);
    padding: 1em;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.history-section {
    background-color: var(--card-bg);
    padding: 1em;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.dashboard-chart {
    display: flex;
    gap: 1em;
    flex-direction: column;
}

.scoreChart {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    flex: 1;
}

.radarChart {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
}

.account-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1em;
    padding: 1em;
}

.account-sidebar {
    width: 220px;
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.account-content {
    flex: 1;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

    .account-nav a {
        color: var(--fg);
        padding: 0.6rem 1rem;
        border-radius: 6px;
        background-color: transparent;
        text-decoration: none;
        transition: background-color 0.3s ease;
        font-weight: 500;
    }

        .account-nav a:hover {
            background-color: var(--accent);
            color: var(--bg);
        }

    .account-nav .active {
        background-color: var(--accent);
        color: var(--bg);
    }

.account-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.field-status {
    color: lightgreen;
    font-weight: bold;
}

.field-button {
    background-color: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

    .field-button:hover {
        background-color: #37a5a5;
    }

.profile-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
}

.profile-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 0.3rem;
        font-weight: 600;
    }

    .form-group input,
    .form-group select {
        padding: 0.7rem;
        border: 1px solid #333;
        background-color: #1b1b1b;
        color: var(--fg);
        border-radius: 6px;
    }

.phone-group {
    display: flex;
    gap: 0.5rem;
}

    .phone-group select,
    .phone-group input {
        flex: 1;
    }

.primary-button {
    background-color: var(--accent);
    color: var(--bg);
    padding: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .primary-button:hover {
        background-color: #26A9E0;
    }

.validation-summary {
    color: #f88;
    font-size: 0.95rem;
}

.field-error {
    color: #f88;
    font-size: 0.85rem;
}

.shop-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(4, 1fr);
}

.package-card {
    background-color: var(--card-bg);
    padding: 1em;
    border-radius: 10px;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .package-card.expired {
        opacity: 0.6;
        border-color: #555;
    }

.package-header {
    display: unset;
}

.package-image {
    width: 100%;
    border-radius: 5px;
    height: 150px;
    object-fit: cover;
}

.package-description {
    color: #ccc;
}

.package-card h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1.4rem;
}

.package-diploma {
    font-size: 0.95rem;
    color: #ccc;
}

.price-amount {
    color: #1b1b1b;
    font-weight: bold;
    color: #fff;
    font-weight: bold;
    font-size: 2em;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
}

.price-discounted {
    color: var(--accent);
    font-weight: bold;
}

.package-list {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(4, 1fr);
}

.package-status {
    font-weight: bold;
    color: var(--accent);
}

.package-diploma {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.buy-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

    .buy-form > button {
        font-size: 15px;
        transition: 0.5s;
    }

        .buy-form > button:hover {
        transform: scale(1.05);
        }

.duration-select {
    padding: 1em;
    border: 1px solid #333;
    background-color: #1b1b1b;
    color: var(--fg);
    border-radius: 10px;
}

.promo-wrapper {
    display: flex;
}

.promo-input {
    padding: 1em;
    border: 1px solid #333;
    background-color: #1b1b1b;
    color: var(--fg);
    border-radius: 10px 0px 0px 10px;
    border-right: 0;
    flex: 1;
    outline: none;
    transition: 0.5s;
}

    .promo-input:hover, .promo-input:focus {
        background: #333;
    }

.promo-check {
    background-color: var(--accent);
    color: var(--bg);
    padding: 1em;
    font-weight: 600;
    border: 1px solid #333;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    border-left: 0;
}

.success-message {
    color: #58d68d;
}

.error-message {
    color: #e74c3c;
}

.chapter-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #2a2a2a;
}

    .chapter-item label {
        margin-left: 0.5rem;
    }

    .chapter-item input[type="checkbox"] {
        transform: scale(1.2);
        margin-right: 0.4rem;
    }

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

    .data-table thead {
        background-color: #1a1a1a;
    }

    .data-table th, .data-table td {
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid #2a2a2a;
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.field-button.danger {
    background-color: #a94442;
}

    .field-button.danger:hover {
        background-color: #d9534f;
        color: white;
    }

.module-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.module-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

    .module-table thead th {
        text-align: left;
        padding: 1rem;
        background-color: #2a2a2a;
        border-radius: 6px 6px 0 0;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .module-table tbody td {
        padding: 1rem;
        background-color: var(--card-bg);
        border-bottom: 1px solid #2e2e2e;
        vertical-align: middle;
        border-radius: 6px;
    }

.status-visible {
    color: lightgreen;
    font-weight: bold;
}

.status-hidden {
    color: #f88;
    font-weight: bold;
}

.linked-diplomas {
    width: 100%;
    background-color: #1b1b1b;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--fg);
    font-size: 0.9rem;
}

.module-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .module-actions .field-button.danger {
        background-color: #a94442;
    }

        .module-actions .field-button.danger:hover {
            background-color: #d9534f;
            color: #fff;
        }

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.popup-content {
    position: relative;
}

.popup-content2 {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

    .popup-content2 h2 {
        margin-bottom: 1rem;
        font-size: 1.5rem;
        color: var(--fg);
        text-align: center;
    }

    .popup-content2 label {
        font-weight: 600;
        color: var(--fg);
        margin-top: 0.5rem;
    }

    .popup-content2 input[type="text"],
    .popup-content2 select {
        padding: 0.7rem;
        border: 1px solid #333;
        border-radius: 6px;
        background-color: #1b1b1b;
        color: var(--fg);
        width: 100%;
    }

.surfilters {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: space-between;
}

.subfilters {
    flex: 1;
    min-width: 200px;
}

    .subfilters h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: var(--accent);
    }

    .subfilters label {
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
        color: var(--fg);
    }

.popup_buttons {
    display: flex;
    gap: 1rem;
    position: absolute;
    flex-direction: column;
    top: 0;
    right: -65px;
}

.question-wizard {
    display: flex;
    width: 100%;
}

.wizard-container {
    background-color: var(--card-bg);
    padding: 2rem;
    width: 100%;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: auto;
    gap: 2em;
}

#prevSlide {
    border-radius: 15px 0 0 15px;
    padding: 0 40px;
}

#nextSlide {
    border-radius: 0 15px 15px 0;
    padding: 0 40px;
}

.mbutton {
    background: var(--accent);
    color: #000;
    width: fit-content;
    padding: 15px;
    border-radius: 5px;
}

.wizard-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.wizard-progress {
    color: var(--muted);
    text-align: center;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wizard-slide {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

    .wizard-slide.active {
        display: flex;
    }

.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.answer-block {
    display: flex;
}

    .answer-block input {
        flex: 1;
        padding: 15px;
        border: 1px solid #fff;
        outline: none;
        border-left: 10px solid #fff;
    }

    .answer-block.correct input {
        background: lightgreen;
    }

    .answer-block.incorrect input {
        background: #f88;
    }

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .checkbox-group label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.cke_notifications_area {
    display: none !important;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-box {
    background-color: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1rem;
    height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1rem;
}

.chat-message {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    max-width: 85%;
    line-height: 1.5;
}

.user-message {
    align-self: flex-end;
    background-color: #2b2b2b;
}

.ia-message {
    align-self: flex-start;
    background-color: #1f1f1f;
    color: var(--fg);
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

    .chat-input input {
        flex: 1;
        padding: 0.75rem 1rem;
        border: 1px solid #333;
        border-radius: 8px;
        background-color: #1a1a1a;
        color: var(--fg);
    }

.chat-loading {
    display: none;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

.chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2d9cdb;
    color: white;
    border: none;
    padding: 16px 18px;
    border-radius: 50%;
    font-size: 20px;
    z-index: 1000;
    cursor: pointer;
}

.chatbot-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 500px;
    background: #1e1e1e;
    color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
    padding: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
}

    .chatbot-header button {
        background: none;
        border: none;
        font-size: 20px;
        color: white;
        cursor: pointer;
    }

.chat-box {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    background: #2a2a2a;
    padding: 8px;
    border-radius: 5px;
}

.chat-message {
    margin-bottom: 6px;
}

.user-message {
    text-align: right;
    color: #a0e;
}

.ia-message {
    text-align: left;
    color: #0af;
}

.chat-input {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

    .chat-input input {
        flex: 1;
        padding: 6px;
        border-radius: 5px;
        border: none;
    }

    .chat-input button {
        padding: 6px 10px;
        border: none;
        background: #2d9cdb;
        color: white;
        border-radius: 5px;
    }

.chat-loading {
    text-align: center;
    font-style: italic;
    margin-top: 5px;
}

.role-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.role-select {
    background-color: #1a1a1a;
    color: var(--fg);
    padding: 0.5rem;
    border: 1px solid #333;
    border-radius: 6px;
}

    .role-select:focus {
        outline: none;
        border-color: var(--accent);
    }

.session-wrapper {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.session-header h1 {
    font-size: 1.8rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 0.5rem;
}

.session-meta {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.session-question h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.question-text {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.question-image, .feedback-image {
    width: 100px;
    border-radius: 6px;
    height: 100px;
    object-fit: cover;
}

.answer-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.answer-option {
    background-color: #1a1a1a;
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

    .answer-option input {
        transform: scale(1.2);
    }

.session-markings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag-options {
    display: flex;
    gap: 1rem;
}

#user-notes {
    background-color: #1b1b1b;
    border: 1px solid #333;
    color: var(--fg);
    border-radius: 8px;
    padding: 1rem;
    min-height: 120px;
    font-family: var(--font);
    resize: vertical;
}

.session-actions, .session-result, .session-summary {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-feedback {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 10px;
}

.feedback-media {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.disabled-button {
    opacity: 0.5;
    pointer-events: none;
}

.search-form {
    width: 100%;
}

    .search-form .input-wrapper {
        display: flex;
        gap: 1rem;
        align-items: center;
        margin-bottom: 2rem;
    }

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
}

.search-button {
    padding: 0.75rem 1.5rem;
}

.question-results {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 6px;
    color: #ccc;
}

.no-results {
    text-align: center;
    font-style: italic;
    color: #888;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    color: #fff;
}

    .contact-form label {
        font-weight: bold;
        margin-bottom: 0.25rem;
    }

    .contact-form .form-control {
        background-color: #1f1f1f;
        border: 1px solid #444;
        border-radius: 5px;
        padding: 0.75rem;
        color: #fff;
    }

    .contact-form textarea.form-control {
        resize: vertical;
        min-height: 150px;
    }

.warning-text {
    color: #f0c674;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.danger-button {
    background-color: #d9534f;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .danger-button:hover {
        background-color: #c9302c;
    }

.role-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.role-select {
    padding: 0.4rem;
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
}

    .role-select option {
        background-color: #2a2a2a;
    }

.progression-up {
    color: #4CAF50;
    font-weight: bold;
}

.progression-down {
    color: #F44336;
    font-weight: bold;
}

.progression-stable {
    color: #FFC107;
    font-weight: bold;
}

.student-suggestions {
    background-color: #1c1c1c;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 8px;
    color: #eee;
}

    .student-suggestions h3 {
        margin-top: 0;
        color: #1B75BB;
    }

.test-session-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
}

.session-bloc {
    display: flex;
    flex: 1;
}

.session-main {
    flex: 3;
    background: #1d1f24;
    padding: 1rem;
    border-radius: 15px;
    border-start-start-radius: 0;
    gap: 25px;
    display: flex;
    flex-direction: column;
}

.session-sidebar {
    background: #1d1f24;
    padding: 1rem;
    border-radius: 15px;
    max-width: 240px;
    position: sticky;
    top: 1em;
    height: fit-content;
    width: 204px;
    max-height: 35em;
    overflow: auto;
}

    .session-sidebar h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: var(--accent);
    }

.nav-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nav-arrow {
    padding: 0.5rem;
    background: #2b2d31;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    flex: 1;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

    .nav-buttons button {
        width: 38px;
        height: 38px;
        font-weight: bold;
        background: #333;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .nav-buttons button:hover {
            background: #26A9E0;
        }

.question-flags {
    display: flex;
    flex-direction: column;
    background: #1B75BB;
    height: fit-content;
    border-radius: 15px 0 0 15px;
}

.note-popup {
    display: none;
    position: absolute;
    background: #2c3e50;
    padding: 15px;
    flex-direction: column;
    gap: 15px;
    border-radius: 15px;
    z-index: 1;
}

    .note-popup textarea {
        min-width: 300px;
        min-height: 150px;
        width: 1000px;
        height: 500px;
    }

    .note-popup .close-button {
        position: absolute;
        top: -14px;
        right: -14px;
        padding: 16px 13px;
        background: #e74c3c;
        border: 0;
        border-radius: 50%;
        line-height: 0;
        color: #fff;
    }

.flag-btn {
    padding: 15px;
    border: 0;
    background: 0;
    font-size: 15px;
}

    .flag-btn.active {
        background: #333;
    }

    .flag-btn:hover {
        background: #fff;
    }

.redtag {
    color: #e74c3c;
}

.greentag {
    color: #2ecc71;
}

.orangetag {
    color: orange;
}

.contact-form input[type="file"] {
    background-color: var(--background-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem;
    margin-bottom: 1rem;
    width: 100%;
}

.success-message {
    background-color: #1c9634;
    padding: 1rem;
    border-radius: 4px;
    color: #fff;
    margin-bottom: 1rem;
}

.footer {
    background-color: var(--card-bg);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 3rem;
    border-top: 1px solid #2a2a2a;
    width: 100%;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 0.4rem;
}

    .footer-links a:hover {
        text-decoration: underline;
    }

.nav-btn.success {
    background-color: #28a745; /* Vert */
    color: white;
}

.nav-btn.failure {
    background-color: #dc3545; /* Rouge */
    color: white;
}

.nav-btn.current {
    border: 1px solid #fff;
}

.nav-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2px;
}

.status-icons {
    font-size: 0.8em;
    line-height: 1;
    margin-bottom: 2px;
}

.answer-option.correct {
    background-color: #28a745;
    color: white;
}

.answer-option.incorrect {
    background-color: #dc3545;
    color: white;
}

.results-container {
    padding: 2rem;
    color: #eee;
}

.results-header {
    background: #1e1e2f;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

    .stats div {
        background: #2b2b40;
        padding: 0.6rem 1rem;
        border-radius: 5px;
    }

.answered {
    background: dodgerblue !important;
}

.success {
    color: #4CAF50;
}

.failure {
    color: #F44336;
}

.graph {
    margin: 1rem 0;
    text-align: center;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-block {
    background: #2a2a3d;
    border-left: 5px solid transparent;
    padding: 1rem;
    border-radius: 5px;
}

.correct-block {
    border-left-color: #4CAF50;
}

.incorrect-block {
    border-left-color: #F44336;
}

.question-title {
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.answer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .answer-list li {
        padding: 0.5rem 1rem;
        margin-bottom: 0.4rem;
        background: #1d1d2b;
        border-radius: 4px;
        position: relative;
        color: #ccc;
    }

        .answer-list li.correct {
            background: #2e7d32;
            color: #d0ffd0;
        }

        .answer-list li.selected-wrong {
            background: #7a1f1f;
            color: #ffd6d6;
        }

.selected-marker {
    margin-right: 0.5rem;
}

.badge {
    background: #4CAF50;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.feedback {
    margin-top: 0.8rem;
    font-style: italic;
    color: orange;
}

.filter-collapse.hidden {
    display: none;
}

.filter-toggle {
    background: none;
    color: var(--text-color);
    border: 1px solid var(--primary);
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

.chapter-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.toggle-subchapters {
    font-weight: bold;
    font-size: 1.2rem;
    user-select: none;
}

.subchapter-item {
    margin: 0.3rem 0 0.3rem 1rem;
}

.comments-section {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

#new-comment {
    min-height: 80px;
    background: #111;
    color: white;
    border: 1px solid #333;
    padding: 0.5rem;
    border-radius: 6px;
}

.comment-item {
    background-color: #222;
    border-left: 3px solid #555;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.nav-btn.selected {
    background-color: var(--accent);
    color: white;
}

.detailscontainer {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1em;
    width: 100%;
}

.detailsinfos {
    padding: 1em;
    background-color: var(--card-bg);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .detailsinfos img {
        object-fit: cover;
        border-radius: 20px;
        border: 5px solid #fff;
    }

    .detailsinfos select {
        width: 125px;
    }

    .detailsinfos:nth-child(1) {
        grid-area: 1 / 1 / 2 / 7;
    }

    .detailsinfos:nth-child(2) {
        grid-area: 1 / 7 / 2 / 8;
    }

    .detailsinfos:nth-child(3) {
        grid-area: 1 / 8 / 2 / 9;
    }

    .detailsinfos:nth-child(4) {
        grid-area: 2 / 1 / 3 / 5;
    }

    .detailsinfos:nth-child(5) {
        grid-area: 2 / 5 / 3 / 9;
    }

    .detailsinfos:nth-child(6) {
        grid-area: 3 / 1 / 4 / 5;
    }

    .detailsinfos:nth-child(7) {
        grid-area: 3 / 5 / 4 / 9;
    }

    .detailsinfos:nth-child(8) {
        grid-area: 4 / 1 / 5 / 5;
    }

    .detailsinfos:nth-child(9) {
        grid-area: 4 / 5 / 5 / 9;
    }

    .detailsinfos:nth-child(10) {
        grid-area: 5 / 1 / 6 / 9;
    }

    .detailsinfos:nth-child(11) {
        grid-area: 6 / 1 / 7 / 5;
    }

    .detailsinfos:nth-child(12) {
        grid-area: 6 / 5 / 7 / 9;
    }

.media-viewer-container {
    display: flex;
    width: 100%;
    gap: 1em;
}

.toolbar {
    display: flex;
    gap: 1em;
    padding: 1em;
    background-color: #2a2a2a;
    flex-direction: column;
    width: 20%;
    border-radius: 15px;
    height: fit-content;
}

    .toolbar button {
        background-color: #2a2a2a;
        color: #fff;
        border: 1px solid #444;
        border-radius: 5px;
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .toolbar img {
        width: 100%;
        margin: 15px 0;
    }

    .toolbar button:hover {
        background-color: #3a3a3a;
    }

    .toolbar button:active {
        background-color: #555;
    }

.canvas-wrapper {
    background-color: #2a2a2a;
    border-radius: 15px;
    flex: 1;
    height: 90vh;
}

.exam-reports-feed {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.exam-report-card-modern {
    background-color: var(--card-bg);
    padding: 1.2em;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1em;
    border-left: 4px solid var(--accent);
}

.report-header {
    display: flex;
    align-items: center;
    gap: 1em;
}

.avatar-circle {
    background-color: var(--accent);
    color: var(--bg);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info .name {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text);
}

.user-info .center {
    font-size: 0.95em;
    color: var(--muted);
}

.user-info .date {
    font-size: 0.85em;
    color: var(--muted);
}

.report-content .module {
    font-size: 1em;
    color: var(--text);
}

.report-content .tops {
    display: flex;
    gap: 2em;
    font-size: 0.95em;
    margin-top: 0.3em;
}

.report-content .comment {
    margin-top: 0.8em;
    background-color: var(--bg-lighter);
    padding: 0.8em 1em;
    border-radius: 8px;
    color: var(--text);
    font-style: italic;
    border-left: 3px solid var(--accent);
}

.examreportform {
    background-color: var(--card-bg);
    padding: 1em;
    border-radius: 10px;
    gap: 1em;
    display: flex;
    flex-direction: column;
}

.exam-countdown {
    padding: 1em;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.exam-countdown-header {
    display: flex;
    gap: 1em;
    align-items: center;
}

.exam-countdown h2 {
    color: #000;
}

    .exam-countdown-header p {
        background: rgba(255,255,255,0.5);
        color: gray;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        gap: 5px;
    }

.exam-countdown-infos {
    display: flex;
    gap: 1em;
}

.addexamdate-button {
    background: rgba(255,255,255,0.5);
    color: gray;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

    .addexamdate-button:hover {
        background: #fff;
        color: #000;
    }

.package-status.badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9em;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-error {
    background-color: #dc3545;
    color: white;
}

.warning-message {
    color: #ffc107;
    background-color: var(--card-bg);
    padding: 1em;
    border-radius: 10px;
}
