:root {
    --accent-blue: #2563eb;
    --system-bg: #fcfcfd;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--system-bg);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
}

.mono { font-family: 'JetBrains Mono', monospace; }

.lecture-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* only clickable cards react to hover */
a.lecture-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

a.lecture-card.sd:hover { border-color: #10b981; }

.status-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    background: #f1f5f9;
    color: #64748b;
}

/* serif for the page title words around the handwritten accent */
.display {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

/* handwritten accent, e.g. the name in the page title */
.script {
    font-family: 'Rouge Script', cursive;
    font-weight: 400;
    font-size: 1.45em;
    line-height: 1;
    letter-spacing: 0;
    padding: 0 0.08em;
}

/* ---- lecture slide viewer (lectures/viewer.html) ---- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid #e2e8f0;
    min-height: 90px;
    display: flex;
    align-items: center;
}

.nav-link:hover .icon-box {
    background-color: var(--accent-blue);
    color: white;
    transform: scale(1.05);
}

.slide-card {
    background: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

.slide-card iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* transparent cursor while presenting; the laser pointer replaces it */
.hide-cursor,
.hide-cursor * {
    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='), none !important;
}

.btn-present {
    position: relative;
    background: #0f172a;
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.btn-present::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

.btn-present:hover::before { left: 100%; }

.btn-present:hover {
    background: var(--accent-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.5);
}

.btn-present:active { transform: translateY(0) scale(0.98); }

.pulse-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    background: #60a5fa;
    border-radius: 50%;
    z-index: -1;
    animation: button-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-present:hover .pulse-ring { background: rgba(255, 255, 255, 0.6); }

.ripple-effect,
.ripple-delayed {
    pointer-events: none;
    display: block !important;
    animation: dot-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ripple-delayed { animation-delay: 1s; }

@keyframes button-pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes dot-pulse {
    0% { transform: scale(0.4); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---- document-style lecture pages (e.g. lectures/java/lecture-1.html, the course outline) ---- */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #334155;
}

.doc-table th,
.doc-table td {
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

/* the title row of each table, as in the Google Doc */
.doc-table .doc-title th {
    background: #1e3a8a;
    color: white;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.doc-table .doc-head th { background: #f1f5f9; color: #0f172a; font-weight: 700; }
.doc-table .doc-label { font-weight: 600; color: #0f172a; width: 30%; }
.doc-table .doc-center { text-align: center; }
.doc-table .doc-quiz td { background: #fff1f2; color: #be123c; font-weight: 700; }
.doc-table .doc-quiz td[colspan] { text-align: center; }
.doc-table .doc-exam td { background: #eff6ff; color: #1e3a8a; font-weight: 700; text-align: center; }
.doc-table ul { list-style: disc; padding-left: 18px; margin: 0; }
.doc-table a { color: #2563eb; }
/* lecture plan: the Learning Resources column is secondary */
.doc-plan tr:not(.doc-head):not(.doc-title) td:last-child:not([colspan]) { font-size: 12px; white-space: nowrap; }
/* plans whose resources carry workshop details: let that column wrap and give Contents the room */
.doc-plan-wide { min-width: 760px; }
.doc-plan-wide tr:not(.doc-head):not(.doc-title) td:last-child:not([colspan]) { white-space: normal; }
.doc-plan-wide .doc-head th:nth-child(3) { width: 38%; }
.doc-plan-wide .doc-head th:nth-child(4) { width: 24%; }
.doc-plan-wide .doc-head th:nth-child(5) { width: 20%; }

/* one item per row with a bullet in front, e.g. Faculty Suggestions */
.doc-dots tr:not(.doc-title) td { position: relative; padding-left: 28px; }
.doc-dots tr:not(.doc-title) td::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 15px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #334155;
}

/* course outcomes: narrower Description so the strategy columns get room */
.doc-cos .doc-head th:nth-child(2) { width: 36%; }

/* OBE course outcomes with PO, Bloom's and BNQF columns: scrolls sideways on phones */
.doc-cos-obe { min-width: 760px; }
.doc-cos-obe .doc-head th:nth-child(2) { width: 28%; }

/* document lecture in Full Screen: scrolls on its own, larger text for the projector */
[data-document]:fullscreen {
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    padding: 40px 6vw;
    outline: none;
}

/* zoom the content, not the laser canvas, so the pointer stays under the mouse */
[data-document]:fullscreen > :not(canvas) { zoom: 1.2; }

[data-document]::backdrop { background: white; }

/* faculty routine grid: one cell per booked slot range, coloured by course */
.doc-routine { min-width: 760px; table-layout: fixed; }
.doc-routine .doc-week { width: 12%; }
.doc-routine td:not(:first-child) { text-align: center; vertical-align: middle; }
.doc-routine .doc-label { white-space: nowrap; }
/* time labels sit on the column's left line (the end time on the last right line) */
.doc-routine .doc-head th:not(:first-child) { position: relative; height: 38px; padding: 0; }
.doc-routine .doc-tick {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #f1f5f9;
    padding: 0 3px;
    font-size: 12px;
    z-index: 1;
}
.doc-routine .doc-tick-end { left: auto; right: 0; transform: translate(0, -50%); }
.doc-routine td[colspan] { font-weight: 600; font-size: 13px; }
.doc-routine .doc-slot-java { background: #eff6ff; color: #1d4ed8; }
.doc-routine .doc-slot-sd { background: #ecfdf5; color: #047857; }
.doc-routine .doc-slot-consult { background: #fffbeb; color: #b45309; }
