:root {
    --bg-canvas: #0b0f19;
    --bg-surface: #131a2a;
    --bg-elevated: #1c2539;
    --bg-hover: #26324b;
    --border-subtle: rgba(148, 163, 184, 0.14);
    --border-accent: rgba(56, 189, 248, 0.45);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-indigo-hover: #4f46e5;
    --danger-bg: rgba(239, 68, 68, 0.16);
    --danger-text: #fca5a5;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-dropdown: 0 12px 32px rgba(0, 0, 0, 0.65);
}

* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top right, #162038 0%, var(--bg-canvas) 55%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 0;
    padding: 14px 18px;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* Header Bar */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(19, 26, 42, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.clock-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Larger Clock Without Seconds */
#clock {
    font-size: 3.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Logged-in Teacher Pill in Header */
.teacher-badge-pill {
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 6px 12px;
}

.teacher-badge-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    font-weight: 700;
}

.teacher-badge-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Date + Course/Unit Selector */
.class-selector-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin: 0;
    transition: border-color 0.2s;
}

.class-selector-form:hover {
    border-color: var(--border-accent);
}

.class-select-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.class-select {
    background: var(--bg-canvas);
    color: var(--accent-cyan);
    border: 1px solid var(--border-subtle);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.class-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.date-select-input {
    color-scheme: dark;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Next Bell Pill */
.next-schedule-box {
    background: var(--bg-elevated);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    text-align: right;
    transition: all 0.2s ease;
}

.next-schedule-box:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.next-label {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.next-time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Unified Options Dropdown Menu */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-btn {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
}

.actions-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

.actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-width: 245px;
    padding: 6px;
    box-shadow: var(--shadow-dropdown);
    z-index: 200;
}

.actions-menu.show {
    display: block;
    animation: fadeSlideDown 0.15s ease-out;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.menu-item:hover {
    background: var(--bg-hover);
}

.menu-highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

.menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 5px 4px;
}

/* Barcode Input Bar */
.barcode-section {
    background: var(--bg-surface);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.barcode-section:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.barcode-icon {
    font-size: 1.05rem;
    opacity: 0.85;
}

.barcode-input {
    flex: 1;
    padding: 6px 4px;
    font-size: 0.92rem;
    background: transparent;
    color: var(--accent-cyan);
    border: none;
    outline: none;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.barcode-input::placeholder {
    color: var(--text-muted);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

/* Unified Roster Header & Counts */
.roster-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-tag {
    background: rgba(56, 189, 248, 0.14);
    color: var(--accent-cyan);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.roster-counts-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.count-pill-present {
    background: #ffffff;
    color: #0f172a;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.count-pill-absent {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.roster-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.roster-section-block {
    padding: 2px 0;
}

/* 3-Column Vertical Alphabetical Unified Roster */
.roster-grid {
    column-count: 3;
    column-gap: 18px;
}

.student-row-clean {
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm);
    break-inside: avoid;
    margin-bottom: 5px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.student-card-left {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.student-card-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.student-row-clean .student-name {
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 1. ABSENT: No background color */
.row-absent {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0;
}

.row-absent:hover {
    background: rgba(255, 255, 255, 0.04);
}

.row-absent .student-name {
    color: #e2e8f0;
    font-weight: 400;
}

/* 2. PRESENT: Solid white background */
.row-present {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.row-present .student-name {
    color: #0f172a;
    font-weight: 600;
}

.row-present .break-summary-text {
    color: #475569;
}

/* 3. WASHROOM BREAK: Solid yellow background in top list */
.row-break {
    background: #facc15;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
}

.row-break .student-name {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 700;
}

/* Check-in time pill next to Present student names */
.checkin-time-badge {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 2px 7px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.row-break .checkin-time-badge {
    background: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

.active-break-inline {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.break-summary-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Action Buttons inside Roster Rows */
.status-toggle-btn {
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: filter 0.15s, transform 0.1s;
}

.status-toggle-btn:hover {
    filter: brightness(0.92);
}

.status-toggle-btn:active {
    transform: scale(0.95);
}

.btn-toggle-present {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

.btn-toggle-absent-icon {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 3px 8px;
}

.btn-toggle-absent-icon:hover {
    background: #dc2626;
}

.btn-wb-out {
    background: #fef08a;
    color: #854d0e;
}

.btn-wb-return {
    background: #0f172a;
    color: #facc15;
}

/* Split Washroom Activity Layout (Left = Active | Right = History Today) */
.washroom-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
    align-items: start;
}

@media (max-width: 900px) {
    .washroom-split-wrapper {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.section-title-history {
    color: var(--text-secondary);
}

.section-subtitle {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: normal;
}

.washroom-container {
    background: rgba(19, 26, 42, 0.65);
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    min-height: 76px;
}

.washroom-col-history {
    border-color: var(--border-subtle);
}

.washroom-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.washroom-card {
    background: #facc15;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    border: none;
    flex: 1 1 240px;
}

.washroom-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.washroom-card .student-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.washroom-card .break-time {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Returned / Disabled Washroom History Card (Right Column) */
.washroom-card-disabled {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    opacity: 0.72;
}

.washroom-card-disabled .student-name {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wb-trip-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
    color: #0f172a;
    margin-left: 6px;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.washroom-card-disabled .wb-trip-badge {
    background: rgba(148, 163, 184, 0.16);
    color: var(--text-secondary);
}

.wb-returned-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
    margin-left: 5px;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.wb-disabled-duration {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.btn-wb-disabled {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    cursor: not-allowed;
    pointer-events: none;
}

.no-breaks {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.82rem;
}

/* Over 5-Minute Washroom Break Alert Styling */
.break-over-limit {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 4px;
    animation: pulseOverLimit 1.6s infinite;
}

.break-over-limit .student-name,
.break-over-limit .break-time {
    color: #ffffff !important;
}

.break-over-limit .wb-trip-badge {
    background: rgba(15, 23, 42, 0.28);
    color: #ffffff;
}

@keyframes pulseOverLimit {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.18);
    }
}

.over-limit-tag {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0.04em;
}

/* Teacher Login Screen */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 92vh;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 420px;
    max-width: 92vw;
    text-align: center;
    box-shadow: var(--shadow-dropdown);
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.login-title {
    margin: 0 0 6px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.login-subtitle {
    margin: 0 0 22px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.login-barcode-input {
    width: 100%;
    background: var(--bg-canvas);
    color: var(--accent-cyan);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.login-barcode-input:focus {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 18, 0.8);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.modal-content {
    background: var(--bg-surface);
    padding: 22px;
    border-radius: var(--radius-lg);
    width: 440px;
    max-width: 92vw;
    max-height: 82vh;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-dropdown);
}

.modal-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.schedule-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.schedule-row input {
    background: var(--bg-canvas);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
}

.schedule-row input:focus {
    border-color: var(--accent-cyan);
}

.sch-desc {
    flex: 1;
}

.btn-add-time {
    margin-top: 8px;
    width: 100%;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-action {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-action:hover {
    background: var(--bg-hover);
}

.btn-delete {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.28);
}

.btn-save {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-save:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

/* Manage Students, Reports, Tickets & Teachers Shared Page Styles */
.nav-btn {
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-decoration: none;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    color: var(--accent-cyan);
}

.page-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.page-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.88rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.alert-box {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

.alert-success {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.manage-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.manage-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.helper-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.5;
}

.helper-text code {
    background: var(--bg-canvas);
    color: var(--accent-cyan);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
}

.manage-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.text-input,
.file-input {
    flex: 1;
    background: var(--bg-canvas);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}

.checkbox-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.danger-text {
    color: var(--danger-text);
}

.table-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.students-table th,
.students-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.students-table th {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.74rem;
    font-weight: 700;
}

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

.students-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--accent-cyan);
    font-weight: 600;
}

.mono-date {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.75rem;
}

/* Status Badges */
.ticket-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-open {
    background: rgba(56, 189, 248, 0.16);
    color: var(--accent-cyan);
}

.badge-closed {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.prio-high {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.prio-medium {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

.prio-low {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

/* Custom Dark Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}