/* CSS Custom Properties for Theme Colors */
:root {
  --primary-color: #00ffff;
  --primary-color-rgb: 0, 255, 255;
  --secondary-color: #0080ff;
  --accent-color: #EA8008;
  --accent-color-rgb: 234, 128, 8;
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
  transition: all 0.3s ease;
}

.theme-switcher:hover {
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.5);
}

.theme-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
}

.theme-option.cyan {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.theme-option.orange {
  background: linear-gradient(135deg, #EA8008, #ff6b35);
  box-shadow: 0 0 15px rgba(234, 128, 8, 0.5);
}

.theme-option.active {
  border-color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 25px currentColor;
}

.theme-option:hover {
  transform: scale(1.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: #ffffff;
}

/* Cyberpunk Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: cyberpunkGlow 8s ease-in-out infinite alternate;
}

@keyframes cyberpunkGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Grid Background */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(var(--primary-color-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Main Dashboard Layout */
.dashboard {
  display: flex;
  height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-right: 2px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.3);
  position: relative;
  z-index: 10;
  overflow-y: auto;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* User Info Section */
.user-info {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.2);
  position: relative;
}

.user-info::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.user-info img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.5);
  margin-bottom: 15px;
  margin-left: 50px;
  transition: all 0.3s ease;
}

.user-info img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.8);
}

.user-info .username {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.user-info .username i {
  color: var(--primary-color);
  animation: pulse 2s infinite;
}

.user-info .discriminator {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
}

/* Navigation Menu */
.menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding: 0 15px;
}

.menu-item {
  width: 100%;
  padding: 16px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background: rgba(var(--primary-color-rgb), 0.05);
  border-radius: 8px;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.2), transparent);
  transition: left 0.5s;
}

.menu-item:hover::before {
  left: 100%;
}

.menu-item i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.menu-item.active, .menu-item:hover {
  background: rgba(var(--primary-color-rgb), 0.15);
  border-left: 3px solid var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
  transform: translateX(5px);
}

.menu-item.logout {
  color: #ff4757;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 71, 87, 0.3);
  padding-top: 20px;
}

.menu-item.logout i {
  color: #ff4757;
}

.menu-item.logout:hover {
  background: rgba(255, 71, 87, 0.15);
  border-left: 3px solid #ff4757;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

/* Main Content Area */
.main-content {
  flex: 1;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  padding: 40px;
  min-width: 0;
  overflow-y: auto;
  position: relative;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.main-content h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.5);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 800;
  letter-spacing: 2px;
}

.main-content h1 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px var(--primary-color); }
  to { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

.main-content p {
  color: #cccccc;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Roles Section */
.roles-section {
  margin-top: 40px;
}

.roles-section h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

.roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #1a1a2e;
}

.roles-list::-webkit-scrollbar {
  width: 8px;
}

.roles-list::-webkit-scrollbar-track {
  background: #1a1a2e;
  border-radius: 4px;
}

.roles-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

.roles-list::-webkit-scrollbar-thumb:hover {
  background: #00cccc;
}

/* Role Badges */
.role-badge {
  /* display: inline-flex; */
  align-items: center;
  gap: 8px;
  background: #e0e0e0;
  color: #000000;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.4);
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.role-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.role-badge:hover::before {
  left: 100%;
}

.role-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(var(--primary-color-rgb), 0.6);
}

.role-badge i {
  font-size: 0.8rem;
  color: #000000;
}

/* Overview Grid */
.overview-grid {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.overview-box {
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 35px 30px;
  min-width: 0;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 350px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.overview-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.overview-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(var(--primary-color-rgb), 0.2);
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

.user-box {
  border: 2px solid #ff4757;
}

.user-box::before {
  background: linear-gradient(90deg, #ff4757, #ff6b7a, #ff4757);
}

.bot-box {
  border: 2px solid var(--primary-color);
}

.bot-box::before {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

/* User/Bot Details */
.user-details, .bot-details {
  width: 100%;

/* Unban button styled similar to ban, but green */
.unban-user-btn {
  background: linear-gradient(135deg, #00c851, #33d98c);
  color: #fff;
  border: 2px solid #00c851;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 500;
  font-size: 12px;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s, border 0.18s;
  box-shadow: 0 2px 8px 0 rgba(0, 200, 81, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.unban-user-btn:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.unban-user-btn:hover {
  background: linear-gradient(135deg, #33d98c, #00c851);
  box-shadow: 0 4px 18px 0 rgba(0, 200, 81, 0.28);
  transform: translateY(-1px) scale(1.04);
  border-color: #33d98c;
}
.unban-user-btn:hover:after {
  opacity: 1;
}
.unban-user-btn:active {
  transform: scale(0.98);
}
.unban-user-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.unban-user-btn i {
  color: #fff;
  font-size: 1.1em;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1);
}
.unban-user-btn:hover i {
  transform: rotate(-10deg) scale(1.15);
}
}

.user-details .avatar, .bot-details .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.5);
  transition: all 0.3s ease;
}

.user-details .avatar:hover, .bot-details .avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(var(--primary-color-rgb), 0.8);
}

.user-details .username, .bot-details .username {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-details .username i, .bot-details .username i {
  color: var(--primary-color);
  animation: pulse 2s infinite;
}

.user-details .discriminator, .bot-details .discriminator {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 20px;
}

.user-details .info-label, .bot-details .info-label {
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

.user-details .info-label i, .bot-details .info-label i {
  color: var(--primary-color);
}

.user-details .roles-list, .bot-details .roles-list {
  margin-bottom: 20px;
}

/* Commands Section */
.commands-section {
  margin-top: 30px;
}

.commands-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.command-card {
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 35px 30px;
  min-width: 300px;
  max-width: 380px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.command-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 4s linear infinite;
}

.command-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(var(--primary-color-rgb), 0.3);
  border-color: rgba(var(--primary-color-rgb), 0.6);
}

.command-card h2 {
  margin: 0 0 15px 0;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.command-card h2 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.command-card p {
  color: #cccccc;
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.command-card p i {
  color: var(--primary-color);
}

/* Command Buttons */
.command-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.command-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.command-btn:hover::before {
  left: 100%;
}

.command-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.5);
  background: linear-gradient(135deg, #00cccc, #0066cc);
}

.command-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 15px rgba(var(--primary-color-rgb), 0.4);
}

.command-btn i {
  font-size: 0.9rem;
  color: #000000;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.modal {
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(var(--primary-color-rgb), 0.3);
  padding: 40px;
  min-width: 400px;
  max-width: 95vw;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: 500px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  animation: modalSlideIn 0.4s ease-out;
} 

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 3s linear infinite;
}

.modal h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 25px;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.modal h2 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.modal label {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: -10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.modal label i {
  color: var(--primary-color);
  width: 18px;
  text-align: center;
}

.modal input, .modal select {
  margin-top: 6px;
  margin-bottom: 15px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  font-size: 1rem;
  width: auto;
  background: rgba(10, 10, 20, 0.8);
  color: #ffffff;
  transition: all 0.3s ease;
}

.modal input:focus, .modal select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
  background: rgba(10, 10, 20, 0.9);
}

.modal select {
  width: 250px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  background: rgba(10, 10, 20, 0.8);
  font-size: 1rem;
  margin-bottom: 12px;
  color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2300ffff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px 20px;
}

.modal select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
  background: rgba(10, 10, 20, 0.9);
}

/* Settings Styles */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.settings-card {
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 30px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.settings-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 4s linear infinite;
}

.settings-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(var(--primary-color-rgb), 0.2);
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

.settings-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
}

.settings-card h3 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.settings-card p {
  color: #cccccc;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}

.settings-card p i {
  color: var(--primary-color);
}

.settings-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.settings-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000000;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
}

.settings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.5);
  background: linear-gradient(135deg, #00cccc, #0066cc);
}

.settings-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.settings-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.settings-btn.disabled {
  background: rgba(128, 128, 128, 0.3);
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

.settings-btn.disabled:hover {
  transform: none;
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
}

/* Logout Confirmation Styles */
.logout-confirmation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(var(--primary-color-rgb), 0.3);
  padding: 35px;
  z-index: 1001;
  max-width: 450px;
  width: 90%;
  text-align: center;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  animation: modalSlideIn 0.4s ease-out;
}

.logout-confirmation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 3s linear infinite;
}

.logout-confirmation h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
}

.logout-confirmation h3 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.logout-confirmation p {
  color: #cccccc;
  margin-bottom: 30px;
  line-height: 1.6;
}

.logout-confirmation-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.logout-confirm-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logout-confirm-btn.confirm {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000000;
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
}

.logout-confirm-btn.confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.5);
  background: linear-gradient(135deg, #00cccc, #0066cc);
}

.logout-confirm-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.logout-confirm-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .overview-grid {
    flex-direction: column;
    gap: 25px;
  }
  
  .overview-box {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 250px;
  }
  
  .main-content {
    padding: 25px;
  }
  
  .main-content h1 {
    font-size: 2rem;
  }
  
  .commands-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .command-card {
    min-width: auto;
    max-width: none;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .modal {
    padding: 25px;
    margin: 20px;
  }
  
  .logout-confirmation {
    padding: 25px;
  }
  
  .logout-confirmation-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 100%;
    position: fixed;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    padding: 20px;
  }
  
  .main-content h1 {
    font-size: 1.8rem;
  }
  
  .overview-box {
    padding: 25px 20px;
  }
  
  .command-card {
    padding: 25px 20px;
  }
  
  .settings-card {
    padding: 25px 20px;
  }
} 

/* Custom Dropdown for User Avatars */
.custom-dropdown {
  position: relative;
  width: 250px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.custom-dropdown-selected {
  background: rgba(10, 10, 20, 0.8);
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-dropdown-selected:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
  background: rgba(10, 10, 20, 0.9);
}
.custom-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 20, 40, 0.98);
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.2);
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  scrollbar-width: thin;
  
}
.custom-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.07);
}
.custom-dropdown-item:last-child {
  border-bottom: none;
}
.custom-dropdown-item:hover, .custom-dropdown-item:focus {
  background: rgba(var(--primary-color-rgb), 0.12);
  color: var(--primary-color);
  outline: none;
}
.dropdown-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  background: #222;
}
.dropdown-username {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
} 

/* Custom Scrollbar for Modal and Dropdowns */

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background: rgba(10, 10, 10, 0.95);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-btn:focus {
  outline: 2px solid var(--primary-color);
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }
  .sidebar {
    width: 80vw;
    max-width: 320px;
    left: 0;
    top: 0;
    height: 100vh;
    position: fixed;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(var(--primary-color-rgb), 0.2);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .dashboard {
    flex-direction: column;
  }
  .main-content {
    margin-left: 0 !important;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    top: 14px;
    left: 14px;
  }
  .sidebar {
    width: 90vw;
    max-width: 95vw;
    min-width: 0;
    padding-top: 60px;
  }
  .main-content {
    padding: 10px;
  }
  .overview-grid {
    flex-direction: column;
    gap: 12px;
  }
}
.modal, .custom-dropdown-list {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #181828;
}
.modal::-webkit-scrollbar, .custom-dropdown-list::-webkit-scrollbar {
  width: 8px;
  background: #181828;
}
.modal::-webkit-scrollbar-thumb, .custom-dropdown-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}
.modal::-webkit-scrollbar-thumb:hover, .custom-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
} 

/* Improved Custom Scrollbar for Overview Page */
.main-content, .overview-grid {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #181828;
  scroll-behavior: smooth;
}
.main-content::-webkit-scrollbar, .overview-grid::-webkit-scrollbar {
  width: 10px;
  background: #181828;
}
.main-content::-webkit-scrollbar-thumb, .overview-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}
.main-content::-webkit-scrollbar-thumb:hover, .overview-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
.main-content::-webkit-scrollbar-corner, .overview-grid::-webkit-scrollbar-corner {
  background: #181828;
}

/* YouTube Videos Section */
.youtube-section {
  margin-top: 40px;
  padding: 0 10px;
}
.youtube-section h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
}
.youtube-section h2 i {
  color: #ff0000;
  font-size: 1.7rem;
}
.youtube-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}
.youtube-video-card {
  background: rgba(20, 20, 40, 0.92);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid rgba(var(--primary-color-rgb), 0.15);
  position: relative;
}
.youtube-video-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(var(--primary-color-rgb), 0.18);
  border-color: var(--primary-color);
}
.youtube-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.youtube-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.08);
}
.youtube-play-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.youtube-play-btn:hover {
  background: var(--primary-color);
  color: #000;
  transform: scale(1.1);
}
.youtube-video-info {
  padding: 16px 18px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.youtube-title {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.13);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.youtube-date {
  color: #aaa;
  font-size: 0.98rem;
  font-weight: 500;
}
.youtube-loading, .youtube-error {
  grid-column: 1/-1;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  padding: 30px 0;
  opacity: 0.8;
}

.youtube-cache-status {
  grid-column: 1/-1;
  background: rgba(var(--primary-color-rgb), 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

.youtube-cache-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
  color: #f59e0b;
}
@media (max-width: 600px) {
  .youtube-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .youtube-section h2 {
    font-size: 1.2rem;
  }
} 

/* Management Section Styles */
.management-section {
  margin-top: 20px;
  padding: 0 10px;
}
.management-section h1 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
}
.management-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.management-tab {
  background: rgba(20, 20, 40, 0.85);
  color: #fff;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  border-radius: 8px 8px 0 0;
  padding: 10px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  outline: none;
}
.management-tab.active, .management-tab:hover {
  background: rgba(20, 20, 40, 0.98);
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.management-content {
  background: rgba(20, 20, 40, 0.92);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 24px 18px 18px 18px;
  min-height: 220px;
}
/* Management section styles */
.management-loading, .management-error, .management-empty {
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  padding: 30px 0;
  opacity: 0.8;
}
.management-error {
  color: #ff4757;
}
.management-empty {
  color: #aaa;
}

/* History section styles */
.history-section {
  padding: 1rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.history-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
}

.history-header h3 i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.clear-history-btn {
  background: #f04747;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.clear-history-btn:hover {
  background: #d73c3c;
}

.clear-history-btn i {
  margin-right: 0.5rem;
}

/* History controls */
.history-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-container input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  background: rgba(10, 10, 20, 0.8);
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-container input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.search-container input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.sort-container label {
  font-weight: 500;
  color: #fff;
  font-size: 0.9rem;
}

.sort-container select {
  padding: 0.5rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 4px;
  background: rgba(10, 10, 20, 0.8);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.sort-container select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.sort-container select option {
  background: #1a1a2e;
  color: #fff;
}

/* History loading states */
.history-loading {
  text-align: center;
  padding: 3rem;
  color: var(--primary-color);
}

.history-loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.history-empty {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.6);
}

.history-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.history-error {
  text-align: center;
  padding: 3rem;
  color: #f04747;
}

.history-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.retry-btn {
  margin-top: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.retry-btn:hover {
  background: rgba(var(--primary-color-rgb), 0.8);
}

/* History table */
.history-table-container {
  background: rgba(10, 10, 20, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(var(--primary-color-rgb), 0.1);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.15);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.history-table th,
.history-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.08);
  vertical-align: top;
}

.history-table th {
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.15), rgba(var(--primary-color-rgb), 0.08));
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.history-table th:first-child {
  border-top-left-radius: 12px;
}

.history-table th:last-child {
  border-top-right-radius: 12px;
}

.history-table tbody tr {
  transition: all 0.2s ease;
  position: relative;
}

.history-table tbody tr:hover {
  background: rgba(var(--primary-color-rgb), 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.1);
}

.history-table tbody tr:hover td {
  border-color: rgba(var(--primary-color-rgb), 0.15);
}

.history-table tr:last-child td {
  border-bottom: none;
}

.history-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.history-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Alternating row colors for better readability */
.history-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.history-table tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.1);
}

/* Table cell content styling */
.history-table .user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 !important; /* Override main user-info padding */
  text-align: left !important;
  border: none !important;
  position: static !important;
}

.history-table .user-info::after {
  display: none; /* Remove the decorative line */
}

.history-table .username {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  text-shadow: none;
  margin: 0;
  display: block;
  justify-content: flex-start;
}

.history-table .user-id {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Courier New', monospace;
  background: rgba(var(--primary-color-rgb), 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  max-width: fit-content;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-badge:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.action-login { 
  background: rgba(59, 130, 246, 0.15); 
  color: #60a5fa; 
  border-color: rgba(96, 165, 250, 0.3);
}

.action-logout { 
  background: rgba(245, 158, 11, 0.15); 
  color: #fbbf24; 
  border-color: rgba(251, 191, 36, 0.3);
}

.action-add_manager_role { 
  background: rgba(34, 197, 94, 0.15); 
  color: #4ade80; 
  border-color: rgba(74, 222, 128, 0.3);
}

.action-remove_manager_role { 
  background: rgba(239, 68, 68, 0.15); 
  color: #f87171; 
  border-color: rgba(248, 113, 113, 0.3);
}

.action-embed_update { 
  background: rgba(139, 92, 246, 0.15); 
  color: #a78bfa; 
  border-color: rgba(167, 139, 250, 0.3);
}

.action-embed_delete { 
  background: rgba(239, 68, 68, 0.15); 
  color: #f87171; 
  border-color: rgba(248, 113, 113, 0.3);
}

.action-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.time-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.time {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.time:before {
  content: '🕒';
  font-size: 0.8rem;
}

.time-ago {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table td {
  color: #fff;
  font-weight: 500;
}

/* Enhanced styling for specific table columns */
.history-table td:nth-child(3) { /* Method column */
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.history-table td:nth-child(5) { /* IP Address column */
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(var(--primary-color-rgb), 0.05);
  border-left: 2px solid rgba(var(--primary-color-rgb), 0.2);
}

/* Empty cell styling */
.history-table td:contains('-'), 
.history-table td:empty {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

/* Column width optimization */
.history-table th:nth-child(1) { width: 20%; } /* User */
.history-table th:nth-child(2) { width: 20%; } /* Action */
.history-table th:nth-child(3) { width: 15%; } /* Method */
.history-table th:nth-child(4) { width: 25%; } /* Time */
.history-table th:nth-child(5) { width: 20%; } /* IP Address */

/* History pagination */
.history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(10, 10, 20, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.pagination-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-controls button {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  background: rgba(10, 10, 20, 0.8);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination-controls button:hover:not(:disabled) {
  background: rgba(var(--primary-color-rgb), 0.1);
  border-color: var(--primary-color);
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-controls button.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

#page-numbers {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

#page-numbers span {
  color: rgba(255, 255, 255, 0.5);
  padding: 0 0.5rem;
}

/* Clear history modal */
.clear-history-modal {
  max-width: 500px;
}

.clear-history-modal .modal-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #fff;
}

.clear-history-modal form {
  margin-top: 1.5rem;
}

.clear-history-modal input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: rgba(10, 10, 20, 0.8);
  color: #fff;
}

.clear-history-modal input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.clear-history-modal input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.danger-btn {
  background: #f04747;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.danger-btn:hover:not(:disabled) {
  background: #d73c3c;
}

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

.success-message {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  border-left: 4px solid #4ade80;
}

.error-message {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  border-left: 4px solid #f87171;
}

/* Mobile responsiveness for history */
@media (max-width: 768px) {
  .history-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
  }
  
  .history-controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-container {
    min-width: auto;
  }
  
  .sort-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .history-pagination {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .history-table-container {
    overflow-x: auto;
  }
  
  .history-table {
    min-width: 600px;
  }
  
  .clear-history-modal {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

/* Tournament Management Styles */
.tournament-management-section {
  padding: 1.5rem;
}

.tournament-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tournament-header h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tournament-header h3 i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.tournament-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}

.tournament-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.setting-card {
  background: rgba(10, 10, 20, 0.95);
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.setting-card:hover {
  border-color: rgba(var(--primary-color-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.1);
}

.setting-header {
  margin-bottom: 1rem;
}

.setting-header h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setting-header h4 i {
  font-size: 1rem;
}

.toggle-setting {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.4s;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: rgba(255, 255, 255, 0.8);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(28px);
  background-color: white;
}

.slider:hover {
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.setting-info {
  flex: 1;
}

.setting-title {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.setting-description {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.4;
}

.tournament-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.save-settings-btn,
.refresh-tournaments-btn {
  background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-color-rgb), 0.8));
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.2);
  min-width: 180px;
}

.save-settings-btn:hover,
.refresh-tournaments-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.save-settings-btn:disabled,
.refresh-tournaments-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.save-settings-btn.unsaved-changes {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  animation: pulse-save 2s infinite;
}

@keyframes pulse-save {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5); }
}

.tournament-info {
  margin-top: 2rem;
}

.info-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
  border-radius: 8px;
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.info-card h5 {
  color: var(--primary-color);
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

#tournament-settings-message {
  margin-top: 1.5rem;
  text-align: center;
}

#tournament-settings-message .success-message,
#tournament-settings-message .error-message {
  padding: 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  font-weight: 500;
}

#tournament-settings-message .success-message {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

#tournament-settings-message .error-message {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Mobile responsiveness for tournament management */
@media (max-width: 768px) {
  .tournament-management-section {
    padding: 1rem;
  }
  
  .tournament-settings-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .setting-card {
    padding: 1rem;
  }
  
  .tournament-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .save-settings-btn,
  .refresh-tournaments-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .toggle-setting {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .toggle-switch {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .tournament-header h3 {
    font-size: 1.3rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .tournament-header h3 i {
    font-size: 1.5rem;
  }
  
  .setting-header h4 {
    font-size: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
}

/* Individual Tournament Management Styles */
.section-divider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.2);
}

.section-divider h4 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tournament-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tournament-stats .stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.tournament-stats .stat.visible {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.tournament-stats .stat.hidden {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.tournament-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.tournament-controls .search-container {
  flex: 1;
  min-width: 250px;
}

.bulk-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bulk-btn {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bulk-btn:hover {
  background: rgba(var(--primary-color-rgb), 0.2);
  border-color: var(--primary-color);
}

.tournaments-list {
  background: rgba(10, 10, 20, 0.95);
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
  border-radius: 12px;
  overflow: hidden;
  max-height: 600px;
  overflow-y: auto;
}

.tournament-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
  transition: all 0.2s ease;
  gap: 1rem;
}

.tournament-item:hover {
  background: rgba(var(--primary-color-rgb), 0.05);
}

.tournament-item:last-child {
  border-bottom: none;
}

.tournament-item.hidden-tournament {
  background: rgba(239, 68, 68, 0.05);
  border-left: 4px solid #f87171;
}

.tournament-checkbox {
  flex-shrink: 0;
}

.tournament-selector {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.tournament-info-section {
  flex: 1;
  min-width: 0;
}

.tournament-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.tournament-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.tournament-state {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.tournament-state.state-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.tournament-state.state-underway {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.tournament-state.state-complete {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.tournament-participants,
.tournament-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tournament-actions-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.tournament-toggle {
  position: relative;
  width: 50px;
  height: 24px;
}

.tournament-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(239, 68, 68, 0.3);
  transition: 0.4s;
  border-radius: 24px;
  border: 2px solid #f87171;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  top: 2px;
  background-color: #f87171;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: rgba(34, 197, 94, 0.3);
  border-color: #4ade80;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
  background-color: #4ade80;
}

.visibility-status {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.visibility-status.visible {
  color: #4ade80;
}

.visibility-status.hidden {
  color: #f87171;
}

.no-tournaments {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.loading-message {
  color: var(--primary-color);
  text-align: center;
  padding: 1rem;
}

/* Mobile responsiveness for tournament management */
@media (max-width: 768px) {
  .section-divider {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .tournament-stats {
    justify-content: center;
    width: 100%;
  }
  
  .tournament-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bulk-actions {
    justify-content: center;
  }
  
  .tournament-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .tournament-info-section {
    text-align: center;
  }
  
  .tournament-details {
    justify-content: center;
  }
  
  .tournament-actions-section {
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
  }
}

@media (max-width: 480px) {
  .bulk-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
  }
  
  .bulk-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .tournament-details {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Tournament Page Visibility Styles */
.tournaments-disabled {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  margin: 2rem 0;
}

.tournaments-disabled i {
  font-size: 3rem;
  color: #f87171;
  margin-bottom: 1rem;
}

.tournaments-disabled h3 {
  color: #f87171;
  margin-bottom: 0.5rem;
}

.developer-info {
  background: rgba(var(--primary-color-rgb), 0.1);
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.developer-info i {
  margin-right: 0.5rem;
}

.tournament-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-item.hidden-info {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.tournaments-empty {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.7);
}

.tournaments-empty i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.tournaments-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .tournaments-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tournament-stats {
    justify-content: center;
  }
  
  .developer-info {
    text-align: center;
  }
}

.roles-list-section {
  margin-top: 10px;
}
.roles-list-section h3 {
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.roles-list-ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}
.roles-list-ul li {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}
.add-role-form {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.add-role-form input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  background: rgba(10, 10, 20, 0.8);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.add-role-form input[type="text"]:focus {
  border-color: var(--primary-color);
}
.add-role-form button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.add-role-form button:hover {
  background: var(--primary-color);
  color: #fff;
}
#add-role-msg {
  color: var(--primary-color);
  font-size: 0.98rem;
  margin-top: 4px;
  min-height: 18px;
} 

/* Manager Role Users List Styles */
.role-users-list {
  margin: 10px 0 10px 0;
  padding: 10px 10px 10px 20px;
  background: rgba(10, 10, 20, 0.85);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.08);
  max-width: 350px;
}
.role-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.role-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  background: #222;
}
.role-user-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}
.role-users-loading, .role-users-empty {
  color: #aaa;
  font-size: 0.98rem;
  margin: 8px 0;
} 

/* Improved Manager Role Buttons */
.show-role-users-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.98rem;
  font-weight: 600;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.08);
  outline: none;
}
.show-role-users-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
.remove-role-btn {
  background: #ff4757;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 6px;
  transition: background 0.2s, color 0.2s;
  vertical-align: middle;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.remove-role-btn:hover {
  background: #ff2233;
  color: #fff;
}
/* Role name with tooltip for ID */
.roles-list-ul li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}
.roles-list-ul li .role-name {
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
}
.roles-list-ul li .role-id-tooltip {
  visibility: hidden;
  opacity: 0;
  background: #222;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 4px 10px;
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  bottom: 120%;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: opacity 0.2s;
  pointer-events: none;
}
.roles-list-ul li .role-name:hover + .role-id-tooltip {
  visibility: visible;
  opacity: 1;
} 

/* Command Access Tab Styles */
.command-access-section {
  margin-top: 10px;
  background: rgba(20, 20, 40, 0.92);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 24px 18px 18px 18px;
}
.command-access-section h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}
.command-access-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-bottom: 18px;
}
.command-access-table th, .command-access-table td {
  padding: 12px 10px;
  text-align: left;
  background: rgba(10, 10, 20, 0.98);
  border-radius: 8px;
}
.command-access-table th {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.18);
  background: rgba(var(--primary-color-rgb), 0.10);
}
.command-access-table td {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  vertical-align: middle;
}
.command-access-table tr {
  transition: background 0.2s;
}
.command-access-table tr:hover td {
  background: rgba(var(--primary-color-rgb), 0.07);
}
.cmd-access-select, .cmd-roles-select {
  background: rgba(20, 20, 40, 0.95);
  color: #fff;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 1rem;
  margin-bottom: 2px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 120px;
}
.cmd-access-select:focus, .cmd-roles-select:focus {
  border-color: var(--primary-color);
}
.cmd-roles-select[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cmd-access-save-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.08);
}
.cmd-access-save-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
#cmd-access-msg {
  color: var(--primary-color);
  font-size: 0.98rem;
  margin-top: 8px;
  min-height: 18px;
}

/* Online Users styles */
.online-users-section {
  margin-top: 10px;
  background: rgba(20, 20, 40, 0.92);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 24px 18px 18px 18px;
}

.online-users-section h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.online-users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-bottom: 18px;
}

.online-users-table th,
.online-users-table td {
  padding: 12px 10px;
  text-align: left;
  background: rgba(10, 10, 20, 0.98);
  border-radius: 8px;
}

.online-users-table th {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.18);
  background: rgba(var(--primary-color-rgb), 0.10);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.online-users-table tr {
  transition: background 0.2s;
}

.online-users-table tr:hover td {
  background: rgba(var(--primary-color-rgb), 0.07);
}

.online-users-table td {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  vertical-align: middle;
}

.online-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.username {
  font-weight: 600;
  color: var(--text-color);
}

.logout-user-btn,
.ban-user-btn {
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logout-user-btn {
  background: #f59e0b;
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.logout-user-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.ban-user-btn {
  background: #ef4444;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.ban-user-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.logout-user-btn:disabled,
.ban-user-btn:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Announcement Modal Styles */
.announcement-modal {
  max-width: 600px;
  width: 90%;
}

.announcement-modal textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  font-size: 1rem;
  background: rgba(10, 10, 20, 0.8);
  color: #ffffff;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.announcement-modal textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
  background: rgba(10, 10, 20, 0.9);
}

.announcement-modal input[type="color"] {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.announcement-modal input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.announcement-modal input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.announcement-preview {
  margin-top: 20px;
  padding: 20px;
  background: rgba(10, 10, 20, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.announcement-preview h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.embed-preview {
  background: rgba(20, 20, 40, 0.9);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.embed-preview-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embed-preview-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.embed-preview-description {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.embed-preview-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 8px;
  display: none;
}

.embed-preview-footer {
  color: #888888;
  font-size: 0.85rem;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

/* Command card disabled state */
.command-card-disabled {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.command-card-disabled .command-btn {
  background: #666 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.command-card-disabled .command-btn:hover {
  transform: none !important;
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3) !important;
}

/* Tournaments Section Styles */
.tournaments-container {
  margin-top: 30px;
}

.tournaments-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding: 0 10px;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 20, 40, 0.8);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
  backdrop-filter: blur(10px);
}

.sort-controls label {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sort-controls label i {
  font-size: 16px;
}

#tournament-sort {
  background: rgba(10, 10, 20, 0.9);
  color: #fff;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2300ffff" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 40px;
}

#tournament-sort:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
}

#tournament-sort:hover {
  border-color: var(--primary-color);
  background: rgba(10, 10, 20, 1);
}

#tournament-sort option {
  background: rgba(20, 20, 40, 0.95);
  color: #fff;
  padding: 8px 12px;
}

.tournaments-loading, .tournaments-error, .tournaments-empty {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  font-size: 1.1rem;
}

.tournaments-error {
  color: #ff4757;
}

.tournaments-empty {
  color: #aaa;
}

.tournaments-empty i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.5;
}

.tournaments-empty h3 {
  color: #fff;
  margin-bottom: 10px;
}

.test-data-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: center;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.95rem;
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.tournament-card {
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 25px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tournament-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 4s linear infinite;
}

.tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.2);
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

.tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.tournament-header h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.tournament-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tournament-status.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.tournament-status.underway {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid #22c55e;
}

.tournament-status.complete {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.tournament-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tournament-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 0.95rem;
}

.tournament-info i {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.tournament-actions {
  display: flex;
  justify-content: flex-end;
}

.tournament-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tournament-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.4);
}

/* Tournament Details Styles */
.tournament-details {
  margin-top: 20px;
}

.tournament-details .tournament-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-3px);
}

.tournament-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.2);
  padding-bottom: 10px;
}

.tournament-tab {
  background: rgba(20, 20, 40, 0.8);
  color: #fff;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tournament-tab.active, .tournament-tab:hover {
  background: rgba(var(--primary-color-rgb), 0.15);
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
}

.tournament-content {
  min-height: 400px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.tournament-loading {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  font-size: 1.1rem;
}

.tournament-error {
  text-align: center;
  padding: 40px 20px;
  color: #ff4757;
  font-size: 1.1rem;
}

/* Bracket Styles */
.bracket-container {
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 30px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.bracket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.bracket-header h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bracket-header h3 i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.bracket-actions {
  display: flex;
  gap: 10px;
}

.bracket-external-link {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.bracket-external-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
  color: #000;
  text-decoration: none;
}

.bracket-external-link i {
  font-size: 0.8rem;
}

.bracket-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 4s linear infinite;
}

.bracket-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.tournament-info-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.tournament-info-header h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tournament-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tournament-meta span {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bracket-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  overflow-x: auto;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.bracket-round {
  flex: 1;
  min-width: 300px;
  background: rgba(10, 10, 20, 0.8);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  transition: all 0.3s ease;
}

.bracket-round:hover {
  border-color: rgba(var(--primary-color-rgb), 0.4);
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.1);
}

.bracket-round h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.2);
  padding-bottom: 10px;
}

/* Proper connecting lines system */
.bracket-connectors {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
}

.bracket-connector-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  z-index: 3;
}

.bracket-connector-line.horizontal {
  height: 2px;
}

.bracket-connector-line.vertical {
  width: 2px;
}

.bracket-round h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.bracket-matches {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bracket-match {
  background: rgba(20, 20, 40, 0.9);
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
  position: relative;
  min-height: 80px;
}

.bracket-match:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
}

.bracket-match.editable {
  cursor: pointer;
}

.bracket-match.editable:hover {
  border-color: #ffa500;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

.bracket-match.completed {
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.05);
}

.match-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.match-player.winner {
  color: #00ff88;
  font-weight: 600;
}

.match-player.loser {
  color: #ccc;
  opacity: 0.7;
}

.match-player.pending {
  color: #fff;
}

.match-score {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 3px 8px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

.match-score.winner {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
  border: 1px solid #ffa500;
}

.match-score.loser {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.match-score.pending {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* Theme integration for manager controls */
.manager-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.manager-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
}

.manager-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.5);
}

.manager-btn.danger {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: #fff;
}

.manager-btn.danger:hover {
  box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
}

.manager-btn.success {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #000;
}

.manager-btn.success:hover {
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.match-number {
  position: absolute;
  top: -8px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Improved connecting lines */
.bracket-round:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

/* Match-specific connectors */
.bracket-match:not(:last-child)::before {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 3;
}

.bracket-match:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 25px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 3;
}

.manager-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.manager-btn {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.manager-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.manager-btn.danger {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: #fff;
}

.manager-btn.danger:hover {
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.manager-btn.success {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #000;
}

.manager-btn.success:hover {
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* Standings Styles */
.standings-container {
  background: rgba(20, 20, 40, 0.9);
  border-radius: 16px;
  padding: 25px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
}

.standings-table {
  overflow-x: auto;
}

.standings-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.standings-table th,
.standings-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.standings-table th {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
}

.standings-table td {
  color: #fff;
  font-size: 0.95rem;
}

.standings-table tr:hover td {
  background: rgba(var(--primary-color-rgb), 0.05);
}

.standings-table tr:first-child td {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  font-weight: 700;
}

.standings-table tr:nth-child(2) td {
  background: rgba(192, 192, 192, 0.1);
  color: #c0c0c0;
  font-weight: 600;
}

.standings-table tr:nth-child(3) td {
  background: rgba(205, 127, 50, 0.1);
  color: #cd7f32;
  font-weight: 600;
}

/* Participants Styles */
.participants-container {
  background: rgba(20, 20, 40, 0.9);
  border-radius: 16px;
  padding: 25px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
}

.participant-count {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.participant-card {
  background: rgba(10, 10, 20, 0.8);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.participant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.15);
  border-color: rgba(var(--primary-color-rgb), 0.4);
}

.participant-rank {
  position: absolute;
  top: 10px;
  right: 15px;
  background: var(--primary-color);
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.participant-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-right: 40px;
}

.participant-status {
  font-size: 0.9rem;
  font-weight: 500;
}

.participant-status.active {
  color: #22c55e;
}

.participant-status.eliminated {
  color: #ff4757;
}

/* Responsive Design for Tournaments */
@media (max-width: 768px) {
  .tournaments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tournament-tabs {
    flex-direction: column;
    gap: 8px;
  }
  
  .tournament-tab {
    text-align: center;
    justify-content: center;
  }
  
  .bracket-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .bracket-round {
    min-width: auto;
  }
  
  .participants-grid {
    grid-template-columns: 1fr;
  }
} 

/* jQuery Bracket Custom Styling */
#bracket-view {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.3);
  min-height: 600px;
}

/* Bracket container styling */
.jQBracket {
  background: transparent !important;
  color: #ffffff !important;
}

/* Team names styling */
.jQBracket .team {
  background: rgba(10, 10, 10, 0.8) !important;
  border: 1px solid var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.5) !important;
  transition: all 0.3s ease !important;
}

.jQBracket .team:hover {
  background: rgba(var(--primary-color-rgb), 0.1) !important;
  box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5) !important;
  transform: scale(1.02) !important;
}

/* Winner styling - Green box */
.jQBracket .team.win {
  background: rgba(0, 255, 0, 0.2) !important;
  border-color: #00ff00 !important;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.6) !important;
  color: #00ff00 !important;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.8) !important;
}

/* Loser styling - Red box */
.jQBracket .team.lose {
  background: rgba(255, 0, 0, 0.2) !important;
  border-color: #ff0000 !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6) !important;
  color: #ff0000 !important;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.8) !important;
}

/* Score styling */
.jQBracket .score {
  background: rgba(var(--accent-color-rgb), 0.2) !important;
  border: 1px solid var(--accent-color) !important;
  color: var(--accent-color) !important;
  font-weight: bold !important;
  text-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.5) !important;
}

/* Match container styling */
.jQBracket .match {
  background: rgba(10, 10, 10, 0.6) !important;
  border: 1px solid rgba(var(--primary-color-rgb), 0.3) !important;
  border-radius: 8px !important;
  margin: 5px !important;
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.2) !important;
}

/* Round labels */
.jQBracket .round {
  color: var(--primary-color) !important;
  font-weight: bold !important;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 1.2rem !important;
  margin-bottom: 15px !important;
  text-align: center !important;
  background: rgba(var(--primary-color-rgb), 0.1) !important;
  padding: 8px 15px !important;
  border-radius: 8px !important;
  border: 1px solid var(--primary-color) !important;
}

/* Custom round labels */
.round-label {
  color: var(--primary-color) !important;
  font-weight: bold !important;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 1.1rem !important;
  margin-bottom: 10px !important;
  text-align: center !important;
  background: rgba(var(--primary-color-rgb), 0.1) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--primary-color) !important;
  display: block !important;
}

/* Bracket lines */
.jQBracket .bracket {
  background: transparent !important;
}

.jQBracket .bracket .round {
  background: transparent !important;
}

/* Toolbar styling (if visible) */
.jQBracket .tools {
  background: rgba(10, 10, 10, 0.9) !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
}

.jQBracket .tools button {
  background: rgba(var(--primary-color-rgb), 0.2) !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  border-radius: 5px !important;
  transition: all 0.3s ease !important;
}

.jQBracket .tools button:hover {
  background: rgba(var(--primary-color-rgb), 0.4) !important;
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5) !important;
}

/* Edit mode styling */
.jQBracket .team.edit {
  background: rgba(var(--accent-color-rgb), 0.2) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.4) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #bracket-view {
    padding: 10px;
    min-height: 400px;
  }
  
  .jQBracket .team {
    font-size: 0.9rem !important;
    padding: 5px !important;
  }
  
  .jQBracket .score {
    font-size: 0.8rem !important;
    padding: 3px 6px !important;
  }
  
  .round-label {
    font-size: 1rem !important;
    padding: 4px 8px !important;
  }
} 

/* === EVENTS SYSTEM STYLES === */

/* Events Container */
.events-container {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.events-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 16px;
}

.events-error {
  text-align: center;
  padding: 40px;
  color: #e74c3c;
  font-size: 16px;
}

/* Events Sections */
.events-section {
  margin-bottom: 30px;
}

.events-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.events-section h3 i {
  font-size: 20px;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Event Cards */
.event-card {
  background: linear-gradient(180deg, rgba(20,20,40,0.9), rgba(10,10,20,0.9));
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(var(--primary-color-rgb), 0.18);
  scroll-snap-align: start;
  min-width: 320px;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.event-card.current {
  border-color: #e74c3c;
  box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
}

.event-card.upcoming {
  border-color: #3498db;
  box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.event-card.giveaway {
  border-color: #f39c12;
}

.event-card.tournament {
  border-color: #9b59b6;
}

.event-card.announcement {
  border-color: #1abc9c;
}

.event-card.sale {
  border-color: #e67e22;
}

/* Event Image */
.event-image {
  position: relative;
  height: 200px;
  background: radial-gradient(100% 100% at 0% 0%, rgba(var(--primary-color-rgb), 0.08) 0%, rgba(0,0,0,0) 60%), linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.07);
}

.event-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  font-size: 48px;
}

.event-placeholder-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: var(--text-secondary);
  font-size: 24px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

/* Event Type Badge */
.event-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
}

.event-type-badge i {
  margin-right: 5px;
}

/* Live Indicator */
.live-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px rgba(231,76,60,0.35);
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Event Content */
.event-content {
  padding: 18px 20px 20px 20px;
}

.event-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-description {
  color: #cfd3e3;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.date-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.date-value {
  color: var(--primary-color);
  font-weight: 600;
}

.event-priority {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b7bfd6;
  font-size: 12px;
}

.event-priority i {
  color: #f39c12;
}

/* Horizontal carousel for events */
.events-carousel {
  position: relative;
  overflow: hidden;
}

.events-carousel .events-track {
  display: flex;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #0f1220;
  padding: 6px 48px 10px 48px; /* space for prev/next buttons */
  overscroll-behavior-x: contain;
}

/* Exactly 3 cards visible on desktop, 2 on tablet, 1 on mobile */
.events-carousel .events-track .event-card {
  flex: 0 0 calc(33.333% - 10.7px);
  min-width: 0;
}

@media (max-width: 1024px) {
  .events-carousel .events-track .event-card {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 640px) {
  .events-carousel .events-track .event-card {
    flex: 0 0 100%;
  }
}

/* Hide horizontal scrollbar since navigation is via buttons */
.events-carousel .events-track::-webkit-scrollbar { height: 0; }
.events-carousel .events-track::-webkit-scrollbar-track { background: transparent; }
.events-carousel .events-track::-webkit-scrollbar-thumb { background: transparent; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(6px);
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

@media (max-width: 768px) {
  .events-carousel .events-track { padding-left: 40px; padding-right: 40px; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
}

/* No Events Message */
.no-events {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.no-events i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-events h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.no-events p {
  font-size: 16px;
  line-height: 1.5;
}

/* === EVENTS MANAGEMENT STYLES === */

.events-management {
  padding: 20px;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.events-header h2 {
  color: var(--primary-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Events Stats */
.events-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--bg-secondary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.stat-card i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Events Tabs */
.events-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-secondary);
  padding-bottom: 10px;
}

.event-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.event-tab:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.event-tab.active {
  background: var(--primary-color);
  color: white;
}

/* Events Content */
.events-content {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-tab-content {
  display: none;
  padding: 20px;
}

.event-tab-content.active {
  display: block;
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.event-row.current {
  border-left-color: #e74c3c;
}

.event-row.upcoming {
  border-left-color: #3498db;
}

.event-row.past {
  border-left-color: #95a5a6;
  opacity: 0.7;
}

.event-row:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.event-details {
  flex: 1;
}

.event-details h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.event-details p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.event-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

.event-meta i {
  color: var(--primary-color);
}

.event-actions {
  display: flex;
  gap: 10px;
}

/* No Events Message in Management */
.no-events-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.no-events-message i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.no-events-message h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.no-events-message p {
  font-size: 14px;
  line-height: 1.5;
}

/* === MODAL STYLES === */

.modal {
  position: relative;
  top: 0;
  left: 0;
  /* width: 100%; */
  /* height: 100%; */
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--primary-color);
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px 20px 0 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 28px 24px 28px;
  border-bottom: 2px solid var(--bg-secondary);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-radius: 20px 20px 0 0;
  position: relative;
}

.modal-header h3 {
  color: var(--primary-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-header h3 i {
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: var(--bg-secondary);
  border: 2px solid var(--primary-color);
  font-size: 18px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modal-close::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.modal-close:hover::before {
  opacity: 1;
}

.modal-close:hover {
  color: white;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-body {
  padding: 28px;
  background: var(--bg-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 24px 28px 28px 28px;
  border-top: 2px solid var(--bg-secondary);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border-radius: 0 0 20px 20px;
}

/* Form Styles */
.form-group {
  margin-bottom: 28px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
}

.form-group label::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--bg-secondary);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.15);
  transform: translateY(-2px);
  background: var(--bg-primary);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Start Now Button */
.start-now-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.start-now-btn::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;
}

.start-now-btn:hover::before {
  left: 100%;
}

.start-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.start-now-btn:active {
  transform: translateY(-1px);
}

.start-now-btn i {
  margin-right: 6px;
  font-size: 14px;
}

/* Date Input Group */
.date-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.date-input-group input {
  flex: 1;
}

.date-input-group .start-now-btn {
  margin-left: 10px;
  white-space: nowrap;
}

/* Required Field Indicator */
.form-group label::after {
  content: " *";
  color: #e74c3c;
  font-weight: 700;
}

.form-group.optional label::after {
  content: "";
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
  border-color: #27ae60;
}

/* Placeholder Styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
  font-style: italic;
}

/* Select Dropdown Styling */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.form-group select option {
  background: #ffffff;
  color: #2c3e50;
  padding: 12px;
}

/* Button Styles */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--bg-secondary);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: 2px solid #e74c3c;
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
  border-radius: 10px;
}

/* === NOTIFICATION STYLES === */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  max-width: 400px;
  border-left: 4px solid var(--primary-color);
  animation: slideIn 0.3s ease;
}

.notification.success {
  border-left-color: #27ae60;
}

.notification.error {
  border-left-color: #e74c3c;
}

.notification.info {
  border-left-color: #3498db;
}

.notification i {
  font-size: 18px;
}

.notification.success i {
  color: #27ae60;
}

.notification.error i {
  color: #e74c3c;
}

.notification.info i {
  color: #3498db;
}

.notification button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.notification button:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* === SOCIAL MEDIA PAGE STYLES === */

.social-media-container {
  margin-top: 30px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.social-card {
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 30px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 4s linear infinite;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.2);
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

.social-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.social-card:hover .social-icon {
  transform: scale(1.1);
}

.social-card.youtube .social-icon {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.social-card.instagram .social-icon {
  background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
  color: white;
  box-shadow: 0 0 20px rgba(228, 64, 95, 0.3);
}

.social-card.tiktok .social-icon {
  background: linear-gradient(135deg, #000000, #ff0050);
  color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.social-card.twitch .social-icon {
  background: linear-gradient(135deg, #9146ff, #6441a5);
  color: white;
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.3);
}

.social-content h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.social-content p {
  color: #cfd3e3;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.social-link {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
  color: #000;
  text-decoration: none;
}

.social-link i {
  font-size: 0.9rem;
}

.social-stats {
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 30px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  position: relative;
  overflow: hidden;
}

.social-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 4s linear infinite;
}

.stats-header {
  text-align: center;
  margin-bottom: 30px;
}

.stats-header h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stats-header h3 i {
  color: var(--primary-color);
  font-size: 1.4rem;
}

.stats-header p {
  color: #cfd3e3;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(10, 10, 20, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-color-rgb), 0.3);
  box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.1);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
}

.stat-icon.instagram {
  background: linear-gradient(135deg, #e4405f, #c13584);
  color: white;
}

.stat-icon.tiktok {
  background: linear-gradient(135deg, #000000, #ff0050);
  color: white;
}

.stat-icon.twitch {
  background: linear-gradient(135deg, #9146ff, #6441a5);
  color: white;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.stat-value {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* === RESPONSIVE DESIGN === */

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .social-card {
    padding: 25px 20px;
  }
  
  .social-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .events-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .event-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .event-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .event-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .event-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .event-actions .btn {
    flex: 1;
    justify-content: center;
  }
  
  .modal-content {
    margin: 20px;
    max-height: calc(100vh - 40px);
    max-width: calc(100vw - 40px);
  }
  
  .events-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .events-header .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Modal Improvements */
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .date-input-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .date-input-group .start-now-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .events-stats {
    grid-template-columns: 1fr;
  }
  
  .events-tabs {
    flex-wrap: wrap;
  }
  
  .event-tab {
    flex: 1;
    min-width: 120px;
  }
  
  /* Small Mobile Modal */
  .modal-content {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }
  
  .modal-header h3 {
    font-size: 18px;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .start-now-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
} 

/* === MODAL ANIMATIONS === */

.modal {
  animation: fadeIn 0.3s ease;
}

.modal-content {
  animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === FORM ENHANCEMENTS === */

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.15);
  transform: translateY(-2px);
  background: var(--bg-primary);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* === ACCESSIBILITY IMPROVEMENTS === */

.modal:focus-within {
  outline: none;
}

.modal-content:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* === LOADING STATES === */

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* === MODAL THEME ENHANCEMENTS === */

.modal-content {
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form validation visual feedback */
.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
  border-color: var(--primary-color);
  background: var(--bg-primary);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

/* Enhanced placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.7;
}

/* Select dropdown enhancement */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='var(--primary-color)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-right: 50px;
  position: relative;
}

.form-group select:hover {
  border-color: var(--primary-color);
  background: var(--bg-primary);
}

.form-group select:focus {
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.15);
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-secondary);
  transition: all 0.2s ease;
}

.form-group select option:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.form-group select option:checked {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
}

/* Event Type select menu - simple background color change */
.form-group select[name="type"] {
  background: var(--bg-secondary);
}

/* Event Type options - color-coded backgrounds */
.form-group select[name="type"] option[value="giveaway"] {
  background: #f39c12;
  color: white;
}

.form-group select[name="type"] option[value="tournament"] {
  background: #9b59b6;
  color: white;
}

.form-group select[name="type"] option[value="announcement"] {
  background: #1abc9c;
  color: white;
}

.form-group select[name="type"] option[value="sale"] {
  background: #e67e22;
  color: white;
}

/* Priority select menu - simple background color change */
.form-group select[name="priority"] {
  background: var(--bg-secondary);
}

/* Priority options - color-coded backgrounds */
.form-group select[name="priority"] option[value="1"] {
  background: #e74c3c;
  color: white;
}

.form-group select[name="priority"] option[value="2"] {
  background: #f39c12;
  color: white;
}

.form-group select[name="priority"] option[value="3"] {
  background: #f1c40f;
  color: white;
}

.form-group select[name="priority"] option[value="4"] {
  background: #2ecc71;
  color: white;
}

.form-group select[name="priority"] option[value="5"] {
  background: #3498db;
  color: white;
}

/* Date input group enhancement */
.date-input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-input-group input {
  flex: 1;
}

/* Modal backdrop enhancement */
.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Success pulse animation */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Enhanced form group spacing */
.form-group:last-child {
  margin-bottom: 0;
}

/* Modal scrollbar styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ===== VIDEOS PAGE STYLES ===== */
.videos-section {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.videos-section h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.videos-loading, .videos-empty, .videos-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-primary);
}

.videos-loading i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.videos-empty i, .videos-error i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.refresh-btn, .test-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin: 10px 10px 0 0;
  transition: all 0.3s ease;
}

.test-btn {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.refresh-btn:hover, .test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.videos-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.3);
  margin-bottom: 10px;
}

.videos-header p {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.cached-badge, .live-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 10px;
}

.cached-badge {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.live-badge {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.video-card {
  background: rgba(var(--primary-color-rgb), 0.05);
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.video-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.2);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}

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

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-btn, .youtube-btn {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
}

.youtube-btn {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
}

.play-btn:hover, .youtube-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.video-meta i {
  color: var(--primary-color);
  margin-right: 5px;
}

.video-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Player Modal */
.video-modal .modal {
  width: 95vw;
  max-width: 1200px;
  height: 80vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
}

.video-player-modal .modal-header {
  padding: 20px;
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(var(--primary-color-rgb), 0.05);
}

.video-player-modal .modal-header h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin: 0;
}

.video-player-container {
  flex: 1;
  background: #000;
  position: relative;
  min-height: 400px;
}

.video-player-container iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.video-actions {
  padding: 15px 20px;
  background: rgba(var(--primary-color-rgb), 0.05);
  border-top: 1px solid rgba(var(--primary-color-rgb), 0.2);
  display: flex;
  justify-content: center;
}

.youtube-action-btn {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.youtube-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px 0;
  }
  
  .videos-section {
    padding: 15px;
  }
  
  .videos-section h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .video-card {
    border-radius: 12px;
  }
  
  .video-thumbnail {
    height: 180px;
  }
  
  .video-info {
    padding: 15px;
  }
  
  .video-title {
    font-size: 1.1rem;
  }
  
  .video-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .video-modal .modal {
    width: 98vw;
    height: 90vh;
    margin: 5vh auto;
  }
  
  .video-player-container {
    min-height: 250px;
  }
  
  .play-btn, .youtube-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .videos-section h1 {
    font-size: 1.8rem;
  }
  
  .video-thumbnail {
    height: 160px;
  }
  
  .videos-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .video-modal .modal {
    height: 95vh;
    margin: 2.5vh auto;
  }
}



