
.examiner-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: #820c22;
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(130, 12, 34, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}

.examiner-schedule-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

#examiner-calendar-wrapper {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

#examiner-calendar {
    width: 100%;
    direction: rtl;
    min-height: 600px;
}

#examiner-calendar .fc-view-harness {
    min-height: 500px;
}

#examiner-calendar .fc-timegrid {
    width: 100%;
}

#examiner-calendar .fc-scrollgrid {
    border: 1px solid #ddd;
}

#examiner-schedule-container .filters-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#examiner-schedule-container .filter-group {
    display: flex;
    flex-direction: column;
}

#examiner-schedule-container .filter-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

#examiner-schedule-container .filter-select {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

#examiner-schedule-container .filter-select:focus {
    outline: none;
    border-color: #820c22;
    box-shadow: 0 0 0 3px rgba(130, 12, 34, 0.1);
}

#examiner-schedule-container .calendar-info {
    background: rgba(130, 12, 34, 0.06);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #820c22;
}

#examiner-schedule-container .calendar-info .info-text {
    margin: 0;
    color: #820c22;
    font-size: 14px;
}

#examiner-schedule-container .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

#examiner-schedule-container .btn-primary {
    background: #820c22;
    color: white;
}

#examiner-schedule-container .btn-primary:hover {
    background: #6a041a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(130, 12, 34, 0.3);
}

#examiner-schedule-container .btn-secondary {
    background: #6c757d;
    color: white;
}

#examiner-schedule-container .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

#examiner-schedule-container .header-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#examiner-schedule-container .emoji {
    font-size: 16px;
}

#examiner-schedule-container .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

#examiner-schedule-container .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: examinerModalSlideIn 0.3s ease;
}

@keyframes examinerModalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#examiner-schedule-container .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #820c22;
    color: white;
    border-radius: 12px 12px 0 0;
}

#examiner-schedule-container .modal-header h3 {
    margin: 0;
    font-size: 22px;
}

#examiner-schedule-container .close-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#examiner-schedule-container .close-modal:hover {
    transform: scale(1.2);
}

#examiner-schedule-container .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

#examiner-schedule-container .form-group {
    display: flex;
    flex-direction: column;
}

#examiner-schedule-container .form-group.full-width {
    grid-column: 1 / -1;
}

#examiner-schedule-container .form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

#examiner-schedule-container .form-input {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

#examiner-schedule-container .form-input:focus {
    outline: none;
    border-color: #820c22;
    box-shadow: 0 0 0 3px rgba(130, 12, 34, 0.1);
}

#examiner-schedule-container .form-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

#examiner-schedule-container .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* ===== Booking Popup ===== */
.examiner-booking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.examiner-booking-popup {
    background: white;
    border-radius: 10px;
    width: 92%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    direction: rtl;
    animation: examinerPopupIn 0.25s ease;
}

@keyframes examinerPopupIn {
    from { transform: translateY(-40px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.examiner-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #820c22;
    color: white;
    border-radius: 10px 10px 0 0;
}

.examiner-popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.examiner-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.examiner-popup-content {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
}

/* Status bar */
.examiner-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(130, 12, 34, 0.04);
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid rgba(130, 12, 34, 0.15);
}

.examiner-status-select {
    padding: 6px 12px;
    border: 1px solid rgba(130, 12, 34, 0.15);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    flex: 1;
    cursor: pointer;
}

.examiner-status-select option[value="booked"]     { background: #c4930e; color: #fff; }
.examiner-status-select option[value="confirmed"]  { background: #560817; color: #fff; }
.examiner-status-select option[value="completed"]  { background: #7a4a00; color: #fff; }
.examiner-status-select option[value="cancelled"]  { background: #000; color: #fff; }

/* Student info */
.examiner-student-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.examiner-student-info h4 {
    margin: 0 0 10px;
    color: #820c22;
    font-size: 15px;
}

.examiner-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: 13px;
}

.examiner-teacher-notes {
    margin-top: 10px;
    padding: 10px 12px;
    background: #e8f4fd;
    border-right: 4px solid #1976d2;
    border-radius: 4px;
    font-size: 13px;
    color: #0d47a1;
    white-space: pre-wrap;
}

/* Report section */
.examiner-report-section {
    background: rgba(250, 196, 13, 0.06);
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(250, 196, 13, 0.3);
}

.examiner-report-section h4 {
    margin: 0 0 12px;
    color: #820c22;
    font-size: 15px;
}

.examiner-criteria-item {
    margin-bottom: 14px;
}

.examiner-criteria-item label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}

.examiner-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.examiner-rating-slider {
    flex: 1;
    accent-color: #820c22;
}

.examiner-slider-value {
    min-width: 24px;
    text-align: center;
    font-weight: bold;
    color: #820c22;
}

.examiner-criteria-notes {
    width: 100%;
    height: 55px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    resize: vertical;
    box-sizing: border-box;
}

.examiner-final-result {
    text-align: center;
    padding: 10px;
    background: rgba(130, 12, 34, 0.06);
    border-radius: 6px;
    font-size: 15px;
    color: #820c22;
    margin-top: 10px;
}

/* View-mode report */
.examiner-report-results { font-size: 13px; }
.examiner-result-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f0e0a0;
}
.examiner-result-label { font-weight: bold; color: #555; }
.examiner-result-val   { color: #820c22; font-weight: bold; }
.examiner-result-notes { color: #666; font-size: 12px; padding: 2px 0 6px; }

/* Footer */
.examiner-popup-footer {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.examiner-popup-footer button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.examiner-btn-save   { background: #820c22; color: white; }
.examiner-btn-edit   { background: #fac40d; color: black; }
.examiner-btn-delete { background: #dc3545; color: white; }
.examiner-btn-cancel { background: #6c757d; color: white; }

.examiner-btn-save:hover   { background: #6a041a; }
.examiner-btn-edit:hover   { background: #e0b000; }
.examiner-btn-delete:hover { background: #b02a37; }
.examiner-btn-cancel:hover { background: #5a6268; }

/* ===== View Toggle ===== */
.examiner-view-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.examiner-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.examiner-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.examiner-toggle-btn.active {
    background: white;
    color: #820c22;
}

/* ===== Table Filters ===== */
.examiner-table-filters {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    direction: rtl;
}

.examiner-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.examiner-filter-group {
    display: flex;
    flex-direction: column;
}

.examiner-filter-group label {
    font-weight: bold;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 13px;
}

.examiner-filter-input,
.examiner-filter-select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
    background: white;
    direction: rtl;
}

.examiner-filter-input:focus,
.examiner-filter-select:focus {
    outline: none;
    border-color: #820c22;
    box-shadow: 0 0 0 3px rgba(130, 12, 34, 0.1);
}

.examiner-filter-actions {
    display: flex;
    gap: 10px;
}

/* ===== Table Info ===== */
.examiner-table-info {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

/* ===== Data Table ===== */
.examiner-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    direction: rtl;
}

.examiner-data-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    font-size: 14px;
}

.examiner-data-table thead {
    background: #820c22;
    color: white;
}

.examiner-data-table th {
    padding: 14px 12px;
    text-align: right;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

.examiner-data-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.examiner-data-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.examiner-table-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.examiner-table-row:hover {
    background: rgba(130, 12, 34, 0.06) !important;
}

/* ===== Status Badges ===== */
.examiner-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.examiner-status-booked {
    background: #c4930e;
    color: #fff;
}

.examiner-status-confirmed {
    background: #560817;
    color: #fff;
}

.examiner-status-completed {
    background: #7a4a00;
    color: #fff;
}

.examiner-status-cancelled {
    background: #000000;
    color: #fff;
}

/* ===== View Button in Table ===== */
.examiner-table-view-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    background: #820c22;
    color: white;
    transition: background 0.2s ease;
}

.examiner-table-view-btn:hover {
    background: #6a041a;
}

/* ===== Pagination ===== */
.examiner-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 10px;
    flex-wrap: wrap;
}

.examiner-page-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.examiner-page-btn:hover {
    background: rgba(130, 12, 34, 0.06);
    border-color: #820c22;
    color: #820c22;
}

.examiner-page-btn.active {
    background: #820c22;
    color: white;
    border-color: #820c22;
}

.examiner-page-dots {
    padding: 6px 8px;
    color: #999;
    font-weight: bold;
}

@media (max-width: 768px) {
    .examiner-schedule-header {
        flex-direction: column;
        text-align: center;
    }

    #examiner-schedule-container .header-controls {
        width: 100%;
        justify-content: center;
    }

    #examiner-schedule-container .form-grid {
        grid-template-columns: 1fr;
    }

    #examiner-calendar .fc-header-toolbar {
        flex-direction: column;
    }

    #examiner-calendar .fc-toolbar-title {
        font-size: 1em;
    }

    #examiner-calendar .fc-button {
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .examiner-filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .examiner-data-table th,
    .examiner-data-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* FullCalendar v6 injects its base CSS at runtime, so keep key overrides scoped */
#examiner-calendar .fc-header-toolbar {
    flex-direction: row;
}
