/* Global Styles */
html, body {
    font-family: 'Poppins', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F9FA;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C62828 0%, #880E4F 50%, #4A148C 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 20px !important;
}

.login-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

/* Video player page */
.video-player-page {
    background: #121212;
    margin: -16px;
    padding: 24px;
    min-height: calc(100vh - 80px);
    color: #FFF;
}

.video-container {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    height: calc(100vh - 140px);
    min-height: 300px;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.video-rotate-btn {
    position: absolute;
    top: 8px;
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    width: 36px;
    height: 36px;
    z-index: 2;
}

.video-rotate-left {
    left: 8px;
}

.video-rotate-right {
    right: 8px;
}

.video-rotate-btn:hover {
    color: #FFF !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

/* AppBar breadcrumbs */
.appbar-breadcrumbs {
    padding: 0 !important;
}

.appbar-breadcrumbs li a {
    color: #607D8B;
    font-size: 0.85rem;
    font-weight: 500;
}

.appbar-breadcrumbs li a:hover {
    color: #C62828;
}

.appbar-breadcrumbs li .mud-breadcrumb-separator {
    color: #B0BEC5;
    font-size: 0.8rem;
}

.appbar-breadcrumbs li:last-child .mud-typography {
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ExamCard */
.exam-card {
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    border-radius: 12px;
}

.exam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.exam-card-ended {
    opacity: 0.85;
}

.exam-card-ended:hover {
    opacity: 1;
}

/* VideoListTile */
.video-tile {
    transition: background 0.15s;
    border-radius: 12px;
}

.video-tile:hover {
    background: #EDF2F7 !important;
}

.video-tile-thumb {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, #C62828, #E53935);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-tile-number {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* Video sidebar (right column) */
.video-sidebar {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
}

.video-sidebar .info-card.transcription-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Transcription panel */
.transcription-panel {
    background: #F1F5F9;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.75rem;
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.8;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid #E2E8F0;
}

/* Student badge */
.student-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00838F, #00ACC1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.student-badge-number {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

/* Video wrapper with side nav buttons */
.video-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-wrapper .video-container {
    flex: 1;
    min-width: 0;
}

.video-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    color: #B0BEC5 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, color 0.2s;
}

.video-nav-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #FFF !important;
}

/* Video below bar (student info) */
.video-below-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #1A1A1A;
    border-radius: 10px;
    border: 1px solid #2A2A2A;
}

/* Dark page cards */
.video-player-page .info-card {
    background: #1E1E1E;
    border: 1px solid #2D2D2D;
    color: #E0E0E0;
}
