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

:root {
  --bg-primary: #060913;
  --bg-surface: rgba(15, 23, 42, 0.9);
  --bg-card: rgba(30, 41, 59, 0.8);
  --bg-card-hover: rgba(51, 65, 85, 0.95);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(139, 92, 246, 0.4);
  
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  
  --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-cyber: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px rgba(139, 92, 246, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.18) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(6, 182, 212, 0.14) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  user-select: none; /* Anti-copy protection */
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.brand-icon {
  background: var(--gradient-main);
  color: white;
  font-weight: 800;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
  letter-spacing: 0.5px;
}

.brand-info h2 {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-info span {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.09);
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-toggle-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
}

/* Mobile Menu Dropdown Fix */
@media (max-width: 768px) {
  .mobile-toggle-btn {
    display: block !important;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 9, 19, 0.98) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.85rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    z-index: 999;
  }

  .nav-links.mobile-open {
    display: flex !important;
  }

  .nav-links .nav-link, .nav-links .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
}

/* Glassmorphic Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.glass-card-glow {
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.6);
}

.btn-cyber {
  background: var(--gradient-cyber);
  color: white;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
}

.btn-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.35);
  color: white;
}

.btn-success {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.35);
  color: white;
}

.btn-warning {
  background: var(--gradient-gold);
  color: #000;
  font-weight: 800;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: rgba(6, 9, 19, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-purple);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

select.form-control option {
  background: #0f172a;
  color: var(--text-main);
}

/* Category Pill Filters */
.category-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cat-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

/* Course Video Cards Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25);
}

.video-thumbnail {
  height: 175px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.06);
  opacity: 0.85;
}

.play-icon-overlay {
  width: 54px;
  height: 54px;
  background: var(--gradient-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
  transition: transform 0.3s ease;
  position: absolute;
  z-index: 2;
}

.video-card:hover .play-icon-overlay {
  transform: scale(1.15);
}

.category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.duration-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-code);
  z-index: 2;
}

.video-card-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.video-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.video-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* User Role & Badges */
.user-role-tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-admin { 
  background: rgba(245, 158, 11, 0.2); 
  color: var(--accent-amber); 
  border: 1px solid rgba(245, 158, 11, 0.4); 
}

.role-student { 
  background: rgba(139, 92, 246, 0.2); 
  color: var(--accent-purple); 
  border: 1px solid rgba(139, 92, 246, 0.4); 
}

/* Student Profile Cards */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.profile-avatar-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.profile-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-detail-row:last-child {
  border-bottom: none;
}

.profile-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

/* DRM Player Modal & Blackout Overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.video-modal-window {
  width: 95%;
  max-width: 1020px;
  background: #090d18;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.video-player-container {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#protectedVideoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.watermark-overlay {
  position: absolute;
  top: 25%;
  left: 25%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 8 !important;
  transition: all 1.2s ease-in-out;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

/* Anti-Screenshot Blackout Shield */
.blackout-shield {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.blackout-shield h3 {
  color: var(--accent-red);
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 0.8rem;
}

.blackout-shield p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* Daily Access Modal Popup */
.daily-modal-box {
  width: 95%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-modal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.auth-modal-tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.auth-modal-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.9rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.status-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-APPROVED { background: rgba(16, 185, 129, 0.18); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.35); }
.status-PENDING { background: rgba(245, 158, 11, 0.18); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.35); }

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Page View Layout */
.page-view {
  padding: 2.5rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
  min-height: 80vh;
}

.hidden { display: none !important; }

/* SLEEK ADMIN SIDEBAR NAV BUTTONS */
.sidebar-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.85rem 1.1rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: var(--text-muted) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}

.sidebar-link:hover {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent-purple) !important;
  transform: translateX(4px);
}

.sidebar-link.active {
  color: #ffffff !important;
  background: var(--gradient-main) !important;
  border-color: transparent !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4) !important;
}

/* PAGE PRELOADER WITH SITE NAME */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  padding: 2rem;
}

.preloader-logo-ring {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.preloader-logo-badge {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  z-index: 2;
}

.preloader-spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-purple);
  border-bottom-color: var(--accent-pink);
  animation: rotatePreloaderSpinner 1.2s linear infinite;
}

@keyframes rotatePreloaderSpinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.preloader-subtitle {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
}

.preloader-progress-bar {
  width: 260px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.preloader-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-cyber);
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.preloader-status-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-code);
}

@keyframes pulseWarning {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 18px var(--accent-red)); }
  100% { transform: scale(1); }
}

/* ADMIN DASHBOARD MOBILE RESPONSIVE LAYOUT */
.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-dashboard-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .admin-dashboard-layout aside {
    width: 100% !important;
    padding: 1rem !important;
  }

  .admin-dashboard-layout aside ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 0.5rem !important;
  }

  .admin-dashboard-layout aside ul li {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .sidebar-link {
    padding: 0.75rem 0.6rem !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 600px) {
  .admin-dashboard-layout aside ul {
    grid-template-columns: 1fr 1fr !important;
  }

  .admin-pane h2 {
    font-size: 1.25rem !important;
  }

  .table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

@media print {
  body { display: none !important; }
}

.watermark-overlay {
  position: absolute;
  z-index: 99;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(0, 0, 0, 0.75);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.5);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-code);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
  transition: top 1.2s ease-in-out, left 1.2s ease-in-out;
  white-space: nowrap;
}

video {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}

video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}
