body { 
    font-family:'Verdana', sans-serif;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #333; 
    font-size: 20px;
}

h2 { 
    font-weight: 600; 
    color: #0f172a;
    scroll-margin-top: 90px;
}

#mazeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.login-page form { 
    max-width: 420px;
    width: 100%; 
    background: #f8fafc; 
    border-radius: 15px; 
    padding: 2rem; 
    transition: transform 1s ease, box-shadow 1s ease;
    font-size: 20px;
} 

.footer-text { 
    margin-top: 1rem; 
    font-size: 0.85rem; 
    color: #cbd5e1; 
} 

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 2px solid #2c8015;
    font-size: 25px;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    font-weight: 600;
    color: #2c8015;
    font-size: 30px;
    margin-right: 1rem;
    text-decoration: none;
}

.brand:hover {
    color: #3fae1b;
}

.navbar a:not(.brand) {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
}

.navbar a:hover {
    color: #2c8015;
}

.logout-btn {
    background-color: #2c8015;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    color: white;
    font-family: Verdana, sans-serif;
    font-size: 20px;
}

.logout-btn:hover {
    background-color: #256b12;
}

html {
    scroll-behavior: smooth;
}

.user-page {
    font-family:'Verdana', sans-serif;
    background: #1e293b;
    color: #ffffff;
    margin: 20px;
    padding-bottom: 800px;
}

.user-page h1, 
.user-page h2 {
    color: #ffffff;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    font-size: 20px;
}

.enrolment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    font-size: 20px;
}

.course-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color:#000000;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.course-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.full {
    color: red;
    font-weight: bold;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    background-color: #2c8015;
    color: rgb(255, 255, 255);
    cursor: pointer;
    margin-top: 10px;
    font-size: 20px;
    font-family:'Verdana', sans-serif;
}

.btn:hover {
    background-color: #256b12;
}

.btn[disabled] {
    background: #ccc;
    cursor: not-allowed;
}

.modal {
    position: fixed;
    color: rgb(255, 255, 255);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 20px;
}

.hidden {
    display: none;
}

.modal-content {
    background: #1e293b;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    border: 2px solid #2c8015;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    color:#ffffff;
    top: 10px;
    right: 14px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

#enrollForm {
    display: flex;
    justify-content: center;
    background: #1e293b;
    box-shadow:0px 0px;
}

.unenrollForm {
    border: none;
    margin: 0;
    padding: 0;
    background: none;
}

#modalEnrollBtn {
    display: block;
    padding: 15px 50px;
    font-size: 1.5rem;
    cursor: pointer;
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
    font-family: Verdana, sans-serif !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

.swal2-popup .swal2-title {
    color: #0f172a !important;
}

.swal2-popup .swal2-html-container {
    color: #334155 !important;
}


.swal2-styled.swal2-confirm {
    background-color: #2c8015 !important;
}

.swal2-styled.swal2-confirm:hover {
    background-color: #256a12 !important;
}

.swal2-styled.swal2-cancel {
    background-color: #d33 !important;
}

.swal2-styled.swal2-cancel:hover {
    background-color: #b22 !important;
}


#pageLoader {
    position: fixed;
    inset: 0;
    background: #0f172a; /* match your theme */
    z-index: 9999;
}

.admin-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 400px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    font-family:'Verdana', sans-serif !important;
}

.admin-section h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #0f172a;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #2c8015;
    outline: none;
    background: #ffffff;
}

/* GRID LAYOUT */
/* .userGrid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5px;
    margin-top: 30px;
    color:#0f172a;
    align-items: stretch;
} */

.userGrid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 30px;
    color:#0f172a;
    align-items: stretch;
}

.userGrid .admin-section:first-child {
    flex: 1;
}

.userGrid .admin-section:last-child {
    width: 400px;
}

/* USERS TABLE SECTION */
.admin-users {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    max-height: 600px !important;
    margin: 0 auto;
    /* width: 1200px; */
    color: #0f172a;
    flex: 1;
}

.admin-users h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* TABLE STYLING */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px;
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table tr:hover {
    background: #f8fafc;
}

/* ADD USER FORM SECTION */


.admin-add-user h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* FORM INPUTS */
.admin-form input,
.admin-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-form input:focus,
.admin-form select:focus {
    border-color: #2c8015;
    background: #ffffff;
    outline: none;
}

/* BUTTON */
.admin-submit {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #2c8015;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.admin-submit:hover {
    background: #256a12;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .userGrid {
        grid-template-columns: 1fr;
    }
}

/* BUTTONS INSIDE TABLE */
.btn-small {
    background: #2c8015;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-small:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-small:hover {
    background: #256a12;
}

.btn-small:disabled:hover {
    background: #ccc;
    cursor: not-allowed;
}

.btn-danger {
    background: #d33;
    color: white;
}

.btn-danger:hover {
    background: #b22;
}

.scrollableSection {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.search-input {
    box-sizing: border-box;
	width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 1rem;
	font-family: 'Verdana', sans-serif;
}

.search-input:focus {
    border-color: #2c8015;
    outline: none;
    background: #ffffff;
}

.admin-form label {
    color: #4d515a;
    font-family: 'Verdana', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
}

#editUserForm input,
#editUserForm select,
#editUserForm button {
    width: 100%;
    box-sizing: border-box;
}

form input,
form select,
form textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Verdana', sans-serif;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 15px !important;
    padding: 10px;
}

form button {
    width: 100%;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 10px;
    max-width: 1000;
}

/* DAY CELL */
.calendar-day {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    position: relative;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.calendar-day:hover {
    background: #e2e8f0;
}

/* TODAY HIGHLIGHT */
.calendar-day.today {
    border: 2px solid #2c8015;
}

/* GREEN DOT FOR DAYS WITH COURSES */
.calendar-day .dot {
    width: 7px;
    height: 7px;
    background: #2c8015;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* EMPTY CELLS */
.calendar-empty {
    background: transparent;
    border: none;
}

/* CALENDAR HEADER */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0f172a;
}

.cal-btn {
    background: #2c8015;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cal-btn:hover {
    background: #256a12;
}

/* DOTS CONTAINER */
.dot-container {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 4px;
}

/* DOT */
.dot {
    width: 6px;
    height: 6px;
    background: #2c8015;
    border-radius: 50%;
}

.selected-day {
    border: 2px solid #256a12 !important;
    background: #e6f4ea !important;
}

.dot-plus {
    font-size: 0.75rem;
    color: #2c8015;
    line-height: 0.5;
    margin-left: 2px;
    display: flex;
    align-items: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 5px;
}

.calendar-weekdays div {
    font-weight: 600;
}

.course-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.filter-btn {
    background: #e2e8f0;
    color: #0f172a;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.filter-btn:hover {
    background: #cbd5e1;
}

.filter-btn.active {
    background: #2c8015;
    color: white;
}

.search-results {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    margin-bottom: 12px;
    max-height: 150px;
    overflow-y: auto;
    color: #0f172a;
}

.search-results div {
    padding: 8px;
    cursor: pointer;
}

.search-results div:hover {
    background: #f1f5f9;
}

.participant-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

#participantSearchResults div,
.participant-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.participant-row span {
    font-size: 0.9rem;
}

 .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

.modal-close:hover {
    color: #717172;
}

#editCourseModal label {
    color: white;
}

/* Hide burger on desktop */
.nav-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* MOBILE MODE */
@media (max-width: 1000px) {

    /* Show burger */
    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    /* Hide nav links initially */
    .nav-left,
    .nav-right {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: #1e293b;
        padding: 20px;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        border-radius: 8px;
        z-index: 999;
    }

    /* When open */
    .nav-left.open,
    .nav-right.open {
        display: flex;
    }

    /* Make links full-width and stacked */
    .nav-left a {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #334155;
    }

    .nav-right {
        margin-top: 10px;
    }
}

@media (max-width: 1300px) {
    .userGrid {
        flex-direction: column;
    }

    .admin-users,
    .admin-section {
        width: 95%;
    }
}

.page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}
