/**
 * Dijital Sınıf Konsolu (DİKON)
 * Akıllı Tahta Arayüzü & Dahiyane Video Üstü Çizim Katmanı Stilleri
 */

.classroom-body {
    background-color: var(--bg-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Minimalist & Net Üst Bar */
.board-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.board-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.board-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
}

.board-date-time {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.board-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ana Sahne */
.board-container {
    flex: 1;
    padding: 24px 32px;
    max-width: 1540px;
    margin: 0 auto;
    width: 100%;
}

/* Minimalist Hero Kartı */
.hero-lesson-card {
    background: linear-gradient(135deg, #131A29 0%, #0E1420 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.hero-left h1 {
    font-size: 1.85rem;
    margin-bottom: 4px;
    font-weight: 800;
}

.hero-left p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.hero-btn {
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    gap: 10px;
}

/* Minimalist Ders & Materyal Kartları (Hızlı Dokunmatik Hedefler) */
.action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 145px;
}

.action-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-elevated);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.action-card:active {
    transform: scale(0.98);
}

.action-card .action-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.action-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================================
 * INTERACTIVE DRAWING OVERLAY (Dahiyane Video Üstü Çizim Katmanı & Tam Ekran)
 * ============================================================ */
.player-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 135px);
    min-height: 540px;
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    transition: all 0.25s ease;
}

/* Tam Ekran Modu (HTML5 Fullscreen API & Fallback) */
.player-wrapper:fullscreen,
.player-wrapper:-webkit-full-screen,
.player-wrapper.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 999999 !important;
    background: #000000 !important;
}

.video-frame-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000000;
}

.video-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Çizim Katmanı (Canvas Overlay - 100% Berrak & Şeffaf) */
.draw-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none;
    z-index: 100;
    touch-action: none;
}

.draw-overlay-container.active {
    display: block;
    animation: fadeInOverlay 0.15s ease-out forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

#overlayCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

/* Overlay Yüzen Çizim Menüsü (Ultra-Sleek Glass Dock) */
.draw-overlay-toolbar {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-full);
    padding: 7px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.70), 0 0 0 1px rgba(255,255,255,0.06);
    z-index: 110;
    max-width: 96vw;
    flex-wrap: wrap;
    justify-content: center;
    user-select: none;
    transition: box-shadow 0.2s ease;
}

.draw-overlay-toolbar.is-dragging {
    cursor: grabbing !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.draw-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    color: var(--text-muted);
    cursor: grab;
    user-select: none;
    touch-action: none;
    border-radius: var(--radius-xs);
    transition: all 0.15s ease;
}

.draw-drag-handle:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
}

.draw-drag-handle:active {
    cursor: grabbing;
}

.draw-btn-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.draw-btn-tool:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.draw-btn-tool.active {
    background: var(--accent-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.draw-stamp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
}

.draw-stamp-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.draw-stamp-btn.active {
    background: var(--accent-emerald);
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.draw-color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.draw-color-swatch:hover {
    transform: scale(1.2);
}

.draw-color-swatch.active {
    border-color: #FFFFFF;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.draw-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

/* Protokol Seçici & Dropdown */
.protocol-select-wrapper {
    position: relative;
    display: inline-block;
}

/* Kilit Ekranı */
.lock-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #151D2E 0%, #0B0F17 100%);
    text-align: center;
    padding: 20px;
}

.lock-time {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #F8FAFC;
    line-height: 1;
    margin-bottom: 4px;
}

.lock-date {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.lock-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 24px 0;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-dot.filled {
    background: var(--accent-blue-light);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
    transform: scale(1.15);
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pin-btn {
    height: 60px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}

.pin-btn:hover {
    background: var(--bg-surface-active);
    border-color: var(--border-hover);
}

.pin-btn:active {
    background: var(--accent-blue);
    color: #FFF;
    transform: scale(0.95);
}
