/* ==========================================================================
   ArtiFrame Global Variables & Base Styles (Edumatris)
   (Driven by data-attributes: data-theme and data-mode)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Comfortaa:wght@700&display=swap');

/* Light Mode (Varsayılan) */
html[data-mode="light"] {
    --brand-primary: #009D6C;
    --brand-primary-hover: #007A54;
    --brand-secondary: #007A54;
    --brand-accent: #10B981;
    
    --canvas-bg: #E6E9EB;
    --card-bg: #FFFFFF;
    --surface: #FFFFFF;
    --border: #D1D5DB;
    --input-bg: #F3F4F6;
    
    --text-primary: #111827;
    --text-main: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.1);
    --info: #3B82F6;
    --info-light: rgba(59, 130, 246, 0.1);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    
    --text-main-rgb: 17, 24, 39;
    --brand-primary-rgb: 0, 157, 108;
    --border-color: var(--border);
    --theme-accent: var(--brand-primary);
    --btn-text: #FFFFFF;
}

/* Dark Mode */
html[data-mode="dark"] {
    --brand-primary: #F4F1EA;
    --brand-primary-hover: #D7D2C7;
    --brand-secondary: #34D399;
    --brand-accent: #6EE7B7;
    
    --canvas-bg: #000F0A;
    --card-bg: #001A12;
    --surface: #001A12;
    --border: #013625;
    --input-bg: #000F0A;
    
    --text-main: #F9F7F1;
    --text-muted: #8CA399;
    --text-primary: #F9F7F1;
    --text-secondary: #8CA399;
    --btn-text: #000F0A;
    
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.15);
    --info: #3B82F6;
    --info-light: rgba(59, 130, 246, 0.15);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    
    /* Extended Vars */
    --text-main-rgb: 249, 250, 251;
    --brand-primary-rgb: 16, 185, 129;
    --border-color: var(--border);
}


/* Base Reset & Genel Stiller */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--canvas-bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: hidden; /* Masaüstünde body scroll'u yasakla */
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-secondary);
}

/* ==========================================================================
   Toaster (Toast Notifications)
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast-message {
    font-size: 0.9rem;
    font-weight: 600;
}
@media (max-width: 576px) {
    .toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
    .toast { width: 100%; justify-content: center; transform: translateY(120%); }
    .toast.show { transform: translateY(0); }
}

/* ==========================================================================
   Global Dropdown Menüler (Sil/Düzenle vb. için)
   ========================================================================== */
.arti-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 150px;
    padding: 6px 0;
    text-align: left;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

html[data-mode="light"] .arti-dropdown {
    background: rgba(255, 255, 255, 0.75);
}

html[data-mode="dark"] .arti-dropdown {
    background: rgba(37, 34, 51, 0.75);
}

.arti-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html[data-mode="light"] .arti-dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

html[data-mode="dark"] .arti-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.arti-dropdown-item.edit-btn {
    color: var(--text-main);
}
.arti-dropdown-item.delete-btn {
    color: var(--danger);
}
.arti-dropdown-item i {
    width: 16px;
    text-align: center;
}

/* ==========================================================================
   Main Application Layout
   ========================================================================== */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: var(--canvas-bg);
    overflow: hidden;
    position: relative;
}

.app-main-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 0; /* Header'ın tepeye yapışabilmesi için sıfırlandı */
    z-index: 1;
}

/* Sayfaların asıl içerik alanı */
.main-content {
    flex: 1 0 auto;
    padding: 2rem;
}

@media (max-width: 992px) {
    .main-content {
        padding: 1.25rem;
    }
}

/* Mobil Scroll Düzeltmesi (Native Body Scroll) */
@media (max-width: 991px) {
    html {
        background-color: var(--canvas-bg);
    }
    html, body {
        overflow-x: clip; /* Sadece yatay taşmaları kırpar, dikey scroll'u bozmaz (iOS uyumlu) */
        overflow-y: visible; /* Sayfanın kendisi kaydırılır */
    }
    .app-layout {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh;
        height: auto !important;
        overflow: visible !important; /* Asla iç scroll olmamalı */
    }
    .app-main,
    .app-main-content {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        flex: 1 0 auto !important;
        min-width: 0;
        max-width: 100%;
        overflow: visible !important; /* Asla iç scroll olmamalı */
        padding-bottom: 100px; /* FAB menüsü yüksekliği (60px) + bottom (32px) için kesin boşluk */
    }
    .main-content,
    .page-content {
        min-width: 0;
        max-width: 100%;
    }
}

/* --- Global Animasyonlu Arka Plan Şekilleri --- */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.2;
    animation: float 12s infinite alternate ease-in-out;
    pointer-events: none;
}

.bg-primary {
    background: var(--brand-primary);
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-secondary {
    background: var(--brand-secondary);
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    animation-delay: -4s;
}

.bg-accent {
    background: var(--brand-accent);
    width: 400px;
    height: 400px;
    bottom: 30%;
    left: 40%;
    animation-delay: -8s;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 50px) scale(1.1); }
}

/* ==========================================================================
   Global Buttons (Brand Guidelines)
   ========================================================================== */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    font-family: inherit;
    text-align: center;
    line-height: 1.5;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
    line-height: 1.4;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    line-height: 1.35;
}

.btn-primary,
.btn-success {
    background-color: var(--brand-primary);
    color: var(--btn-text);
}

.btn-primary:hover:not(:disabled),
.btn-success:hover:not(:disabled) {
    background-color: var(--brand-secondary);
    color: var(--btn-text);
}

.btn-secondary {
    background-color: var(--brand-secondary);
    color: var(--btn-text);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--brand-primary);
    color: var(--btn-text);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--border);
    color: var(--text-main);
}

[data-mode="dark"] .btn-outline:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Page Headers (Inside App)
   ========================================================================== */
.page-header {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

/* Yan vurgu çizgisi (İnce ve minimal) */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-secondary));
    border-radius: 1rem 0 0 1rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-header {
        padding: 0.75rem 1rem 0.75rem 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 0.75rem;
    }
    .page-header::before {
        border-radius: 0.75rem 0 0 0.75rem;
        width: 3px;
    }
    .page-header h1 {
        font-size: 1.25rem;
    }
}

/* --- Global Confirm Modal --- */
.confirm-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-overlay.show .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.confirm-message {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.confirm-prompt-input {
    width: 100%;
    margin-bottom: 24px;
    margin-top: -8px; /* Pulled up slightly closer to the message */
    padding: 0.75rem 1rem;
    background: var(--canvas-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.confirm-prompt-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.15);
    outline: none;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-actions .btn {
    padding: 8px 20px;
    font-size: 0.95rem;
}

/* --- Global Comment Bottom Sheet Modal --- */
.cm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    /* Mobilde overlay'e dokunulduğunda sayfanın kaymasını engelle */
    touch-action: none;
    overscroll-behavior: none;
}
.cm-overlay.show {
    opacity: 1;
    visibility: visible;
}
.cm-modal {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--canvas-bg);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh; /* 85% of viewport height */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
@media (min-width: 640px) {
    .cm-overlay {
        align-items: center; /* Center on desktop */
    }
    .cm-modal {
        border-radius: 16px;
        max-height: 80vh;
    }
}
.cm-overlay.show .cm-modal {
    transform: translateY(0);
}
.cm-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cm-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}
.cm-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.cm-close:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}
.cm-body {
    flex: 1 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    overscroll-behavior: contain;      /* Scroll zincirini kır */
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
/* Input Container Fixed at Bottom */
.cm-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--canvas-bg);
    flex-shrink: 0;
    /* Safe Area Inset Bottom for Mobile Navigation Bars */
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

/* ---- Yorum Listesi ve Öğeleri (Global) ---- */

.btn-outline-role {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-outline-role:hover {
    background-color: var(--input-bg);
    color: var(--text-primary);
}

/* ==========================================================================
   ArtiToast - Global Notification System
   ========================================================================== */
.arti-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Let clicks pass through empty space */
}

.arti-toast {
    background: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--border);
    padding: 16px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    pointer-events: auto; /* Re-enable clicks on the toast itself */
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arti-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.arti-toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}

/* Colors by Type */
.arti-toast.success { border-left-color: var(--success, #10b981); }
.arti-toast.error { border-left-color: var(--danger, #ef4444); }
.arti-toast.warning { border-left-color: var(--warning, #f59e0b); }
.arti-toast.info { border-left-color: var(--info, #3b82f6); }

/* Icon Styles */
.arti-toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.arti-toast.success .arti-toast-icon { background: rgba(16, 185, 129, 0.1); color: var(--success, #10b981); }
.arti-toast.error .arti-toast-icon { background: rgba(239, 68, 68, 0.1); color: var(--danger, #ef4444); }
.arti-toast.warning .arti-toast-icon { background: rgba(245, 158, 11, 0.1); color: var(--warning, #f59e0b); }
.arti-toast.info .arti-toast-icon { background: rgba(59, 130, 246, 0.1); color: var(--info, #3b82f6); }

/* Content Styles */
.arti-toast-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.arti-toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main, #111827);
    line-height: 1.2;
}
.arti-toast-message {
    font-size: 13px;
    color: var(--text-muted, #6B7280);
    line-height: 1.4;
}

/* Close Button */
.arti-toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted, #6B7280);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s;
    opacity: 0.6;
}
.arti-toast-close:hover {
    color: var(--text-main, #111827);
    opacity: 1;
}

/* --- Mobile Specific Overrides (max-width: 576px) --- */
@media (max-width: 576px) {
    .page-title {
        font-size: 22px !important;
    }
    .card-title {
        font-size: 16px !important;
    }
}

/* Fix inline padding on main content for mobile */
@media (max-width: 576px) {
    .main-content {
        padding: 16px !important;
    }
}


/* =========================================================
   PWA & NATIVE APP NATIVE BEHAVIORS
   ========================================================= */
html, body {
    /* Mobilde aşağı çekerek sayfa yenileme (pull-to-refresh) aktif */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tıklanabilir öğelerde metin seçimini ve highlight'ı kapat */
a, button, .edu-btn, .menu-item, .chat-conv-item, .settings-nav-item, .dropdown-item {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Dokunmatik Geri Bildirim (Touch Feedback) */
.edu-btn:active, .dropdown-item:active, .chat-conv-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* iPhone Safe Areas (Home Bar & Notch) */
:root {
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

@media (max-width: 991px) {
    /* Mobilde sayfa padding'ini safe-area ile destekle */
    .main-content {
        padding-bottom: calc(80px + var(--safe-bottom)) !important; /* Bottom nav payı */
    }
    /* Toast bildirimleri alt navigasyonun üstünde dursun */
    .arti-toast-container {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: 16px;
    }
}

@media (max-width: 768px) {
    .app-main-content .main-content,
    .main-content {
        padding: 16px !important;
        padding-bottom: calc(84px + var(--safe-bottom)) !important;
    }
}

@media (max-width: 576px) {
    .arti-toast-container {
        left: 12px;
        right: 12px;
    }
    .arti-toast {
        min-width: 0;
        max-width: none;
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .confirm-modal {
        padding: 22px 18px;
        width: calc(100% - 24px);
    }
    .confirm-actions {
        flex-direction: column-reverse;
        width: 100%;
        gap: 8px;
    }
    .confirm-actions .btn,
    .confirm-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   TABLE TO CARDS (MOBIL UYUMLU TABLOLAR)
   ========================================================= */
@media (max-width: 576px) {
    /* Özel edu-table veya standart tabloları mobilde kart yapılarına dönüştürür */
    .edu-table-responsive {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .edu-table-responsive table, 
    .edu-table-responsive thead, 
    .edu-table-responsive tbody, 
    .edu-table-responsive th, 
    .edu-table-responsive td, 
    .edu-table-responsive tr {
        display: block !important;
    }
    
    .edu-table-responsive thead tr {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }
    
    .edu-table-responsive tr {
        border: 1px solid var(--border) !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        background: var(--card-bg) !important;
        padding: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
    }
    
    .edu-table-responsive td {
        border: none !important;
        border-bottom: 1px solid var(--border) !important;
        position: relative !important;
        padding: 12px 0 12px 45% !important;
        text-align: right !important;
        min-height: 48px;
    }
    
    .edu-table-responsive td:last-child {
        border-bottom: 0 !important;
    }
    
    .edu-table-responsive td::before {
        position: absolute !important;
        top: 12px !important;
        left: 0 !important;
        width: 40% !important;
        padding-right: 10px !important;
        white-space: nowrap !important;
        text-align: left !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        content: attr(data-label);
    }
}

/* ==========================================================================
   Medya & Demo Materyal Koruma (Farklı Kaydet & Sürükleme Engeli)
   ========================================================================== */
img,
video,
audio,
canvas,
[data-protected-media],
#eduMaterialViewerModal img,
#eduMaterialViewerModal video,
#eduMaterialViewerModal audio {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

video::-internal-media-controls-download-button,
audio::-internal-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}
