/* ================================
   INSTRUCTOR PAGE SPECIFIC STYLES
   ================================ */

/* Overlay behind modal */
#instructor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 90;
}

/* Modal container */
#instructor-modal {
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#instructor-modal .modal-content {
    min-height: 350px;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Close button */
#instructor-modal .close {
    float: right;
    cursor: pointer;
    font-size: 22px;
}

/* ================================
   SEARCH AREA
   ================================ */

.search-container {
    margin-top: 12px;
    padding: 0 8px 10px;
    position: relative;
}

/* Pretty pill-style search bar */
#instructor-search {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d0d4e4;
    padding: 10px 40px 10px 14px; /* extra right padding for icon */
    font-size: 14px;
    outline: none;
    background-color: #f8f9ff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
    font-family: inherit;
    color: #222;
}

/* magnifying-glass icon on the right */
.search-container::after {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.65;
    pointer-events: none;
}

#instructor-search::placeholder {
    color: #9aa0b5;
}

#instructor-search:focus {
    background-color: #ffffff;
    border-color: #4c7cf5;
    box-shadow: 0 0 0 3px rgba(76, 124, 245, 0.2);
}

.search-results {
    margin-top: 12px;
}

/* Instructor result list */
.instructor-item {
    padding: 12px 16px;
    border-radius: 10px;
    background: #f4f5fb;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease;
}

.instructor-item:hover {
    background: #e5ecff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* name on the left */
.instructor-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* class-count pill on the right */
.instructor-count {
    min-width: 32px;
    height: 24px;
    border-radius: 999px;
    background: #dde7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #3454c3;
}

/* ===============================
   MATCH STUDENT CALENDAR LAYOUT
   =============================== */

/* Do NOT override the global grid — only apply instructor-specific visuals */

.instructor-page .week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: relative;
}

/* Align day columns to global system */
.instructor-page .day-column {
    position: relative;
    border-right: 1px solid #e4e4e4;
    height: 960px; /* 6AM–10PM (16hrs × 60px) */
}

/* Hour lines */
.instructor-page .hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e5e5;
}

/* Time indicators */
.instructor-page .time-indicator {
    height: 60px;         /* MUST match student page */
    width: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 13px;
    color: #666;
}

/* ================================
   EVENT (CLASS BLOCKS)
   ================================ */

.instructor-page .event {
    position: absolute;
    left: 8%;
    width: 84%;
    background: #4285f4;
    color: white;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.instructor-page .event-title {
    font-weight: 700;
    margin-bottom: 3px;
}

.instructor-page .event-details {
    font-size: 12px;
    opacity: 0.9;
}

/* ================================
   CLASS LIST (LEFT PANEL)
   ================================ */

.calendar-list {
    margin-top: 20px;
    width: 300px;
}

.class-item {
    background: #f8f9fc;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #4285f4;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#instructor-name-label {
    margin-bottom: 12px;
    text-align: center;
}

.class-code {
    font-weight: 700;
    font-size: 14px;
}

.class-title {
    font-size: 13px;
}

.class-sched {
    font-size: 12px;
    color: #555;
}

/* Taller day-of-week header for instructor page */
.instructor-page .weekdays-header {
    height: 60px !important;      /* Increase header height */
    padding-top: 10px !important; /* Optional: spacing for text */
    padding-bottom: 10px !important;
    display: grid !important;
    align-items: center !important;
}

.weekdays-container {
    padding: 20px;
    border-right: 1px solid #eee;
}

/* Highlight today's date in the instructor week header */
.weekday-date.today {
    background-color: #4285f4;
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 600;
    display: inline-block;
}

/* Optional: color the weekday name when it's today */
.weekday-name.today {
    color: #4285f4;
    font-weight: 700;
}
