/* Velvet Game Console Base Palette */
:root {
  --bg-void: #050312;
  --bg-panel: rgba(20, 15, 35, 0.85);
  --border-glow: #d4adfc33;
  --accent-blush: #e0709a;
  --accent-neon: #bc13fe;
  --text-main: #e0e0e0;
  --text-muted: #a0a0b0;
}

body { 
  font-family: 'Segoe UI', system-ui, sans-serif; 
  background: var(--bg-void); 
  color: var(--text-main); 
  margin: 0;
}

/* Global Typography */
h1, h2, h3, h4 { color: #ffb3d9; }

.badge {
  font-size: 11px;
  background: var(--accent-blush);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important; /* Force override inherited transparency */
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  cursor: pointer;
  font-weight: 700;
  vertical-align: middle;
  transition: all 0.2s;
  letter-spacing: normal;
}
.badge:hover {
  background: var(--accent-neon);
  box-shadow: 0 0 10px rgba(188, 19, 254, 0.4);
}

/* Global Buttons */
.btn-primary { 
  background: linear-gradient(135deg, var(--accent-blush), var(--accent-neon)); 
  color: #fff; 
  border: none; 
  padding: 12px 24px; 
  border-radius: 8px; 
  font-size: 14px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.2s; 
  box-shadow: 0 4px 15px rgba(188, 19, 254, 0.3); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(188, 19, 254, 0.5); 
  filter: brightness(1.1); 
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary { 
  background: rgba(0,0,0,0.4); 
  color: var(--text-muted); 
  border: 1px solid var(--border-glow); 
  padding: 8px 16px; 
  border-radius: 6px; 
  font-size: 12px; 
  cursor: pointer; 
  transition: all 0.2s; 
}
.btn-secondary:hover { 
  background: rgba(224, 112, 154, 0.1); 
  color: #fff; 
  border-color: var(--accent-blush); 
}

/* Glassmorphic Panels */
.panel { 
  background: var(--bg-panel); 
  border: 1px solid var(--border-glow); 
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.panel-header { 
  padding: 16px; 
  border-bottom: 1px solid var(--border-glow); 
  font-size: 14px; 
  font-weight: 700; 
  color: #ffb3d9; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

/* Inputs & Forms */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { 
  font-size: 12px; 
  font-weight: 700; 
  color: #ffb3d9; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}
input[type="text"], input[type="password"], textarea, select { 
  background: rgba(0,0,0,0.5); 
  border: 1px solid var(--border-glow); 
  color: #fff; 
  padding: 12px; 
  border-radius: 8px; 
  font-family: 'Segoe UI', sans-serif; 
  font-size: 14px; 
  transition: all 0.2s; 
  width: 100%;
  box-sizing: border-box;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus { 
  outline: none; 
  border-color: var(--accent-blush); 
  box-shadow: 0 0 0 2px rgba(224, 112, 154, 0.2); 
}
textarea { resize: vertical; min-height: 120px; font-family: monospace; line-height: 1.5; font-size: 13px; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
/* Side Navigation Layout — glassmorphic depth */
.app-container { display: flex; height: 100vh; overflow: hidden; width: 100vw; }
.side-nav {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 0 24px;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(34, 18, 60, 0.72) 0%, rgba(14, 7, 28, 0.62) 50%, rgba(8, 4, 18, 0.66) 100%);
  border-right: 1px solid rgba(212, 173, 252, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    4px 0 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}
.side-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 179, 217, 0.55) 25%, rgba(188, 19, 254, 0.85) 50%, rgba(255, 179, 217, 0.55) 75%, transparent 100%);
  pointer-events: none;
  filter: blur(0.3px);
  z-index: 1;
}
.side-nav-brand { padding: 14px 24px 22px; border-bottom: 1px solid rgba(212, 173, 252, 0.18); margin-bottom: 12px; }
.side-nav-brand h1 { font-size: 16px; font-weight: 700; background: linear-gradient(90deg, #ffb3d9, var(--accent-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.side-nav-brand .badge {
  box-shadow:
    0 0 12px rgba(188, 19, 254, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.side-nav .nav-menu { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 0; overflow-y: auto; }
.side-nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  padding: 9px 14px 9px 16px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.side-nav a .nav-icon { font-size: 15px; line-height: 1; width: 20px; text-align: center; flex-shrink: 0; filter: drop-shadow(0 0 0 transparent); transition: filter 0.18s ease, transform 0.18s ease; }
.side-nav a:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(224, 112, 154, 0.16) 0%, rgba(188, 19, 254, 0.08) 100%);
  box-shadow:
    inset 2px 0 0 var(--accent-blush),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 14px rgba(224, 112, 154, 0.14);
}
.side-nav a:hover .nav-icon { filter: drop-shadow(0 0 6px rgba(255, 179, 217, 0.55)); transform: scale(1.06); }
.side-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(224, 112, 154, 0.22) 0%, rgba(188, 19, 254, 0.12) 100%);
  box-shadow:
    inset 2px 0 0 var(--accent-blush),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 18px rgba(224, 112, 154, 0.22);
  text-shadow: 0 0 8px rgba(255, 179, 217, 0.25);
}
.side-nav a.active .nav-icon { filter: drop-shadow(0 0 8px rgba(255, 179, 217, 0.7)); }
.side-nav .nav-group-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent-blush);
  opacity: 1;
  padding: 16px 16px 6px;
  font-weight: 800;
  pointer-events: none;
  position: relative;
}
.side-nav .nav-group-title::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 6px;
  background: linear-gradient(90deg, rgba(224, 112, 154, 0.4) 0%, rgba(212, 173, 252, 0.12) 50%, transparent 100%);
}
.side-nav .nav-menu::-webkit-scrollbar { width: 6px; }
.side-nav .nav-menu::-webkit-scrollbar-track { background: transparent; }
.side-nav .nav-menu::-webkit-scrollbar-thumb { background: rgba(212, 173, 252, 0.18); border-radius: 3px; }
.side-nav .nav-menu::-webkit-scrollbar-thumb:hover { background: rgba(212, 173, 252, 0.32); }
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-void); }

/* Unified Content Area (scrollable) */
.content { 
  flex: 1; 
  overflow-y: auto; 
  padding: 32px 24px; 
  max-width: 960px; 
  margin: 0 auto; 
  width: 100%; 
}

/* Global Top Bar (Header inside main-content) */
.top-bar { background: rgba(10, 5, 20, 0.95); padding: 12px 24px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-glow); flex-shrink: 0; backdrop-filter: blur(10px); }
.top-bar h1 { font-size: 18px; font-weight: 700; background: linear-gradient(90deg, #ffb3d9, var(--accent-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0; }
.top-bar a { text-decoration: none; font-size: 13px; color: var(--text-main); }
.top-bar a:hover { text-decoration: underline; color: var(--accent-blush); }

/* Global Headings */
h2 { font-size: 20px; color: var(--accent-blush); margin-top: 0; margin-bottom: 16px; }
h3 { font-size: 15px; color: #e8c547; margin-top: 20px; margin-bottom: 10px; }

/* Responsive Layout */
@media (max-width: 992px) {
  .app-container {
    flex-direction: column;
  }
  .side-nav {
    width: 100%;
    height: auto;
    padding: 10px 0 12px;
    border-right: none;
    border-bottom: 1px solid rgba(212, 173, 252, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 4px 18px rgba(0, 0, 0, 0.3);
  }
  .side-nav::before {
    top: 0; left: 0; right: auto; bottom: 0;
    width: 2px; height: auto;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 179, 217, 0.55) 25%, rgba(188, 19, 254, 0.85) 50%, rgba(255, 179, 217, 0.55) 75%, transparent 100%);
  }
  .side-nav-brand {
    padding: 0 16px 12px;
    margin-bottom: 8px;
  }
  .side-nav .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 8px;
  }
  .side-nav a {
    padding: 6px 12px;
    font-size: 12px;
    box-shadow: none !important;
    text-shadow: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }
  .side-nav a:hover, .side-nav a.active {
    box-shadow: none !important;
    background: rgba(224, 112, 154, 0.18) !important;
  }
  .side-nav a .nav-icon { transform: none !important; filter: none !important; }
  .side-nav .nav-group-title {
    display: none;
  }
}
