/* Brand New Modern Design - 2024 */
:root {
  --dark: #0a0a0a;
  --darker: #050505;
  --surface: #111111;
  --surface-light: #1a1a1a;
  
  --cyan: #00ffff;
  --purple: #a855f7;
  --pink: #ec4899;
  --orange: #f97316;
  
  --text: #ffffff;
  --text-dim: #b3b3b3;
  --text-muted: #888888;
  
  --border: #262626;
  --border-light: #404040;
}

/* Light Mode Variables */
[data-theme="light"] {
  --dark: #f5f5f5;
  --darker: #ffffff;
  --surface: #ffffff;
  --surface-light: #f9f9f9;
  
  --text: #0a0a0a;
  --text-dim: #2a2a2a;
  --text-muted: #4a4a4a;
  
  --border: #e0e0e0;
  --border-light: #d0d0d0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--darker);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(236, 72, 153, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  background-size: 100% 100%;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

/* Animated background particles effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(0, 255, 255, 0.15), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(168, 85, 247, 0.15), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(0, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(168, 85, 247, 0.1), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(236, 72, 153, 0.1), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(0, 255, 255, 0.1), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: particleMove 20s ease infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

@keyframes particleMove {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 90% 60%, 33% 80%;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 50% 50%, 20% 80%, 10% 40%, 67% 20%;
  }
}

/* Navigation - Enhanced with Glassmorphism */
.navbar {
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  padding: 0.65rem 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 1200;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 13, 16, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 255, 0.05);
  border-bottom-color: rgba(0, 255, 255, 0.2);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  padding: 0.12rem 0;
  position: relative;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.navbar-nav {
  gap: 0.25rem;
}

.navbar-nav .nav-link {
  color: var(--text-dim);
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--text);
  background: rgba(0, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.15);
}

.navbar-nav .nav-link.active {
  color: var(--cyan);
  background: rgba(0, 255, 255, 0.18);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  border-radius: 2px;
}

.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 255, 255, 0.1) inset,
    0 0 20px rgba(0, 255, 255, 0.1);
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  transform: none;
  min-width: 11rem;
  overflow: hidden;
}

.navbar .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
}

.dropdown-menu .dropdown-item {
  display: block;
  color: var(--text-dim);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  text-decoration: none;
}

.dropdown-menu .dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-menu .dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.15), rgba(168, 85, 247, 0.1));
  color: var(--cyan);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.navbar .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.navbar .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.navbar .btn:hover::before {
  width: 300px;
  height: 300px;
}

.navbar .btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  filter: brightness(1.1);
}

.navbar .btn-outline {
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: var(--text);
  background: transparent;
}

.navbar .btn-outline:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.navbar .btn-danger {
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: #000;
  font-weight: 600;
}

.navbar .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.navbar-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-right: 1rem;
}

.navbar-text strong {
  color: var(--cyan);
  font-weight: 600;
}

/* Main Layout - New Structure */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--dark);
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.page-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-main {
  grid-column: span 8;
}

.dashboard-sidebar {
  grid-column: span 4;
}

@media (max-width: 1024px) {
  .dashboard-main {
    grid-column: span 12;
  }
  
  .dashboard-sidebar {
    grid-column: span 12;
  }
}

/* Feature Cards - Enhanced with Glassmorphism */
.feature-card {
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(0, 255, 255, 0.4);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 20px 60px rgba(0, 255, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(17, 17, 17, 0.9);
}

.feature-card:hover::before {
  opacity: 1;
  animation: shimmer 2s infinite;
}

.feature-card:hover::after {
  opacity: 1;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Video Card - Special Styling */
.feature-card .ratio {
  margin-top: 0.5rem;
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  background: linear-gradient(135deg, var(--text), var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  letter-spacing: -0.02em;
}

.feature-card-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

/* Banner - Responsive with max constraints - Enhanced with Gradient Overlay */
.hero-banner {
  width: 100%;
  max-width: 100%;
  max-height: 500px;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(26, 26, 26, 0.9));
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 255, 255, 0.1) inset;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.hero-banner:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 
    0 20px 60px rgba(0, 255, 255, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 255, 255, 0.2) inset;
  border-color: rgba(0, 255, 255, 0.4);
}

.hero-banner:hover::before,
.hero-banner:hover::after {
  opacity: 1;
}

.hero-banner img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: brightness(0.95) contrast(1.05);
}

.hero-banner:hover img {
  transform: scale(1.03);
  filter: brightness(1) contrast(1.1);
}

/* Buttons - Enhanced with Glow Effects */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  box-shadow: 
    0 6px 20px rgba(0, 255, 255, 0.35),
    0 0 0 1px rgba(0, 255, 255, 0.2) inset;
  position: relative;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00e6e6, #b366ff);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(0, 255, 255, 0.5),
    0 4px 15px rgba(168, 85, 247, 0.3),
    0 0 0 1px rgba(0, 255, 255, 0.3) inset;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 
    0 4px 15px rgba(0, 255, 255, 0.4),
    0 0 0 1px rgba(0, 255, 255, 0.2) inset;
}

.btn-success {
  background: #10b981;
  color: #000;
}

.btn-danger {
  background: var(--orange);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-light);
  border-color: var(--border-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.w-100 {
  width: 100%;
}

/* Forms */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: #ffffff !important;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  width: 100%;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.6;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--cyan) !important;
  background: var(--surface-light) !important;
  color: #ffffff !important;
  box-shadow: 
    0 0 0 3px rgba(0, 255, 255, 0.15),
    0 0 20px rgba(0, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-1px);
}

.form-control:focus::placeholder,
input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0.4;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Tables - Dark Mode (Default) */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface) !important;
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: var(--dark) !important;
}

.table thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-dim) !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--dark) !important;
}

.table tbody {
  background: var(--surface) !important;
}

.table tbody tr {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: var(--surface-light) !important;
}

.table tbody td {
  padding: 0.875rem 1rem;
  color: var(--text) !important;
  font-size: 0.9rem;
  background: var(--surface) !important;
}

.table tbody th {
  color: var(--text) !important;
  background: var(--surface) !important;
}

/* Badges - Enhanced */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.badge:hover::before {
  left: 100%;
}

.badge-primary {
  background: rgba(0, 255, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.badge-primary:hover {
  background: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: scale(1.05);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-success:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  transform: scale(1.05);
}

.badge-secondary {
  background: rgba(26, 26, 26, 0.6);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.badge-secondary:hover {
  background: rgba(26, 26, 26, 0.8);
  border-color: var(--border-light);
}

/* News List - Enhanced Style */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-item {
  padding: 1.25rem 1.5rem;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid transparent;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--pink));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.news-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-item:hover {
  background: rgba(26, 26, 26, 0.85);
  border-color: rgba(0, 255, 255, 0.25);
  transform: translateX(6px) scale(1.01);
  box-shadow: 
    0 6px 24px rgba(0, 255, 255, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-item:hover::before {
  transform: scaleY(1);
}

.news-item:hover::after {
  opacity: 1;
  animation: shimmer 2s infinite;
}

.news-title {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.news-title:hover {
  color: var(--cyan);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Navigation Pills - Enhanced */
.nav-pills {
  display: flex;
  gap: 0.5rem;
}

.nav-pills .nav-link {
  padding: 0.5rem 0.875rem;
  background: rgba(17, 17, 17, 0.6);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-pills .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-pills .nav-link:hover {
  background: rgba(26, 26, 26, 0.8);
  color: var(--text);
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.15);
}

.nav-pills .nav-link:hover::before {
  opacity: 1;
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
  font-weight: 600;
}

.nav-pills .nav-link.active::before {
  opacity: 0;
}

/* Footer - Enhanced */
footer {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  padding: 2rem 2rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
}

footer a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

footer a:hover {
  color: var(--cyan);
}

footer a:hover::after {
  width: 100%;
}

/* Utility */
.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-dim) !important;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-md-row { flex-direction: row; }
.align-items-center { align-items: center; }
.align-items-md-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.text-center { text-align: center; }
.small { font-size: 0.85rem; }

.link-light {
  color: var(--text-dim);
}

.link-light:hover {
  color: var(--cyan);
}

[data-theme="light"] .link-light {
  color: #2a2a2a !important;
}

[data-theme="light"] .link-light:hover {
  color: var(--cyan) !important;
}

[data-theme="light"] .link-light.small {
  color: #4a4a4a !important;
}

[data-theme="light"] .link-light.small:hover {
  color: var(--cyan) !important;
}

.navbar-text {
  color: var(--text-dim);
}

.navbar-text strong {
  color: var(--cyan);
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  background: var(--surface);
  max-height: 300px;
}

.ratio::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.ratio-16x9::before {
  padding-bottom: 56.25%;
}

/* Limit aspect ratio container height for compact display */
@media (min-width: 768px) {
  .ratio::before {
    max-height: 300px;
  }
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 300px;
}

.ratio iframe {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease;
  max-height: 300px;
}

.ratio:hover iframe {
  transform: scale(1.03);
}

.ratio:hover {
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .page-content {
    padding: 1rem;
  }
  
  .page-header {
    padding: 2rem 1rem 1.5rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}

/* Compatibility */
.main-content {
  min-height: 100vh;
}

.main-header {
  background: var(--dark);
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.main-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.card,
.login-card,
.video-card,
.news-section,
.online-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-section {
  margin-bottom: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  padding: 0 0.75rem;
}

.col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

@media (max-width: 992px) {
  .col-lg-8,
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }

.promo-img,
.placeholder-banner {
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  display: block;
  width: 1.5em;
  height: 1.5em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* Mobile Navbar */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  .navbar-collapse.show {
    display: block;
  }

  .custom-dropdown {
    position: static;
    display: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
    box-shadow: none;
    border: 1px solid rgba(0, 255, 255, 0.2);
  }

  .custom-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.3), rgba(168, 85, 247, 0.3));
  border-radius: 5px;
  border: 2px solid var(--darker);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.5), rgba(168, 85, 247, 0.5));
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Light Mode Styles */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-bottom-color: rgba(0, 255, 255, 0.4);
}

[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 255, 255, 0.1);
}

[data-theme="light"] .navbar-nav .nav-link:hover {
  background: rgba(0, 255, 255, 0.15);
}

[data-theme="light"] .navbar-nav .nav-link.active {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

[data-theme="light"] .feature-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--border-light) !important;
}

[data-theme="light"] .feature-card-header {
  border-bottom: 1px solid var(--border) !important;
}

[data-theme="light"] .feature-card-title {
  color: #1a1a1a !important;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.4);
}

[data-theme="light"] .btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--cyan);
}

[data-theme="light"] .form-control,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="url"],
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .form-control::placeholder,
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: var(--cyan) !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15) !important;
}

[data-theme="light"] .form-control:focus::placeholder,
[data-theme="light"] input:focus::placeholder,
[data-theme="light"] textarea:focus::placeholder {
  opacity: 0.5;
}

[data-theme="light"] .page-header {
  border-bottom: 1px solid var(--border);
}

/* Light Mode - Ensure all text is dark and readable */
[data-theme="light"] body,
[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] div,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] label,
[data-theme="light"] .form-label,
[data-theme="light"] .feature-card-title,
[data-theme="light"] .navbar-text,
[data-theme="light"] .nav-link,
[data-theme="light"] .dropdown-item {
  color: var(--text) !important;
}

[data-theme="light"] .text-muted,
[data-theme="light"] .form-text,
[data-theme="light"] small {
  color: var(--text-muted) !important;
}

[data-theme="light"] .navbar-nav .nav-link {
  color: var(--text-dim) !important;
}

[data-theme="light"] .navbar-nav .nav-link:hover,
[data-theme="light"] .navbar-nav .nav-link.active {
  color: var(--text) !important;
}

[data-theme="light"] .dropdown-item {
  color: var(--text-dim) !important;
}

[data-theme="light"] .dropdown-item:hover {
  color: var(--text) !important;
  background: var(--surface-light) !important;
}

[data-theme="light"] .table {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}

[data-theme="light"] .table thead {
  background: #f8f9fa !important;
}

[data-theme="light"] .table thead th {
  color: #2a2a2a !important;
  font-weight: 600 !important;
  border-bottom: 2px solid var(--border) !important;
}

[data-theme="light"] .table tbody tr {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
}

[data-theme="light"] .table tbody tr:hover {
  background: #f8f9fa !important;
}

[data-theme="light"] .table tbody td {
  color: #1a1a1a !important;
}

[data-theme="light"] .table tbody th {
  color: #1a1a1a !important;
}

/* Dark Mode Tables - Explicit styles to ensure they work */
body:not([data-theme="light"]) .table,
:not([data-theme="light"]) .table {
  background: var(--surface) !important;
}

body:not([data-theme="light"]) .table thead,
:not([data-theme="light"]) .table thead {
  background: var(--dark) !important;
}

body:not([data-theme="light"]) .table thead th,
:not([data-theme="light"]) .table thead th {
  color: var(--text-dim) !important;
  background: var(--dark) !important;
}

body:not([data-theme="light"]) .table tbody,
:not([data-theme="light"]) .table tbody {
  background: var(--surface) !important;
}

body:not([data-theme="light"]) .table tbody tr,
:not([data-theme="light"]) .table tbody tr {
  background: var(--surface) !important;
}

body:not([data-theme="light"]) .table tbody tr:hover,
:not([data-theme="light"]) .table tbody tr:hover {
  background: var(--surface-light) !important;
}

body:not([data-theme="light"]) .table tbody td,
:not([data-theme="light"]) .table tbody td {
  color: var(--text) !important;
  background: var(--surface) !important;
}

body:not([data-theme="light"]) .table tbody th,
:not([data-theme="light"]) .table tbody th {
  color: var(--text) !important;
  background: var(--surface) !important;
}

/* Override Bootstrap table-dark in Light Mode */
[data-theme="light"] .table-dark,
[data-theme="light"] .table.table-dark {
  background-color: transparent !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .table-dark thead,
[data-theme="light"] .table-dark thead th {
  background-color: #f8f9fa !important;
  color: #2a2a2a !important;
  border-color: var(--border) !important;
}

[data-theme="light"] .table-dark tbody,
[data-theme="light"] .table-dark tbody tr {
  background-color: var(--surface) !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .table-dark tbody tr:hover {
  background-color: #f8f9fa !important;
}

[data-theme="light"] .table-dark tbody td,
[data-theme="light"] .table-dark tbody th {
  color: #1a1a1a !important;
  border-color: var(--border) !important;
}

/* Override table-striped in Light Mode */
[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--surface) !important;
}

[data-theme="light"] .table-striped > tbody > tr:nth-of-type(even) {
  background-color: #fafafa !important;
}

[data-theme="light"] table {
  border-color: var(--border) !important;
}

[data-theme="light"] table thead {
  background: #f8f9fa !important;
}

[data-theme="light"] table thead th {
  color: #2a2a2a !important;
  font-weight: 600 !important;
}

[data-theme="light"] table tbody tr {
  background: var(--surface) !important;
}

[data-theme="light"] table tbody tr:hover {
  background: #f8f9fa !important;
}

[data-theme="light"] table tbody td {
  color: #1a1a1a !important;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--darker);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--surface);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: var(--surface-light);
}

/* Theme Toggle Button */
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  position: relative;
}

#theme-toggle:hover {
  background: var(--surface-light);
  border-color: var(--cyan);
  transform: scale(1.05);
}

#theme-toggle:active {
  transform: scale(0.95);
}

#theme-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* Fade-in animation classes - Enhanced */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for multiple items */
.news-item {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.news-item:nth-child(1) { animation-delay: 0.05s; }
.news-item:nth-child(2) { animation-delay: 0.1s; }
.news-item:nth-child(3) { animation-delay: 0.15s; }
.news-item:nth-child(4) { animation-delay: 0.2s; }
.news-item:nth-child(5) { animation-delay: 0.25s; }
.news-item:nth-child(6) { animation-delay: 0.3s; }
.news-item:nth-child(7) { animation-delay: 0.35s; }
.news-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Feature cards fade-in */
.feature-card {
  animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.feature-card:nth-of-type(1) { animation-delay: 0.1s; }
.feature-card:nth-of-type(2) { animation-delay: 0.2s; }
.feature-card:nth-of-type(3) { animation-delay: 0.3s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Slide-in animation for news items - Enhanced */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse animation for live badges */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.2);
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.7), 0 0 50px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
  }
}

.badge-success[data-live="true"] {
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}

.badge-success[data-live="true"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.3);
  transform: translate(-50%, -50%) scale(1.5);
  animation: pulseRing 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulseRing {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* Form input focus state */
.form-control:focus,
.form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
}

.form-group.focused .form-label,
.form-control:focus + .form-label,
.form-select:focus + .form-label {
  color: var(--cyan);
}
