/* Reset and base configurations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-primary: #0a0b0d;
  --bg-secondary: #12141c;
  --bg-card: rgba(24, 27, 38, 0.7);
  --bg-card-hover: rgba(35, 39, 54, 0.85);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(138, 43, 226, 0.15);
  
  --color-primary: #8a2be2;      /* Neon Purple */
  --color-primary-glow: rgba(138, 43, 226, 0.4);
  --color-secondary: #00ffff;    /* Electric Cyan */
  --color-secondary-glow: rgba(0, 255, 255, 0.3);
  --color-accent: #ff007f;       /* Cyber Pink */
  
  /* Text Colors */
  --text-main: #f1f2f6;
  --text-muted: #8b949e;
  --text-dark: #57606f;

  /* Status Colors */
  --status-online: #2ed573;
  --status-idle: #ffa502;
  --status-dnd: #ff4757;
  --status-offline: #747d8c;
  
  /* Font */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows and Transitions */
  --box-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-neon-purple: 0 0 15px rgba(138, 43, 226, 0.25);
  --shadow-neon-cyan: 0 0 15px rgba(0, 255, 255, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 20%, rgba(138, 43, 226, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(0, 255, 255, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-glow);
}

/* ==========================================================================
   SIDEBAR STYLE
/* ==========================================================================
   SIDEBAR STYLE
   ========================================================================== */
.sidebar {
  width: 240px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

.server-profile {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  flex-shrink: 0;
}

.server-avatar-container {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: var(--shadow-neon-purple);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-secondary);
}

.server-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  color: #fff;
}

/* Badge indicator for Bot connection */
.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.status-indicator-badge.online {
  background-color: rgba(46, 213, 115, 0.1);
  color: var(--status-online);
  border: 1px solid rgba(46, 213, 115, 0.25);
}

.status-indicator-badge.offline {
  background-color: rgba(116, 125, 140, 0.1);
  color: var(--status-offline);
  border: 1px solid rgba(116, 125, 140, 0.2);
}

.status-indicator-badge.failed {
  background-color: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.25);
}

.status-indicator-badge.disabled {
  background-color: rgba(255, 165, 0, 0.1);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.25);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  position: relative;
}

.status-indicator-badge.online .pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.nav-menu {
  flex: 1;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.nav-link i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding-left: 16px;
}

.nav-link.active {
  background-color: rgba(138, 43, 226, 0.12);
  color: #fff;
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: inset 0 0 10px rgba(138, 43, 226, 0.08);
  font-weight: 600;
}

.nav-link.active i {
  color: var(--color-secondary);
  text-shadow: 0 0 10px var(--color-secondary-glow);
}

.sidebar-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

/* ==========================================================================
   MAIN LAYOUT & HEADER
   ========================================================================== */
.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.header-title h1 {
  font-size: 1.5rem;

  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff 40%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  outline: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #6f1ab6);
  color: #fff;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9944f0, var(--color-primary));
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn i {
  font-size: 0.95rem;
}

.btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   TAB PANELS & CARDS
   ========================================================================== */
.content-container {
  flex: 1;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Cards and Grids */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--box-shadow-glass);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 43, 226, 0.2);
  box-shadow: var(--shadow-neon-purple);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.members-icon {
  background-color: rgba(88, 101, 242, 0.1);
  color: #5865F2;
}

.online-icon {
  background-color: rgba(46, 213, 115, 0.1);
  color: var(--status-online);
}

.voice-icon {
  background-color: rgba(0, 255, 255, 0.1);
  color: var(--color-secondary);
}

.moderation-icon {
  background-color: rgba(255, 71, 87, 0.1);
  color: var(--status-dnd);
}

.stat-details h3 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

/* Row structures */
.dashboard-layout-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .dashboard-layout-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: var(--box-shadow-glass);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.card-tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
}

.card-body {
  padding: 24px;
  flex: 1;
}

/* Moderation Breakdown Styling */
.breakdown-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.progress-track {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

.fill-spam {
  background: linear-gradient(90deg, #ffa502, #ff7f50);
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.fill-links {
  background: linear-gradient(90deg, #00ffff, #00a8ff);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.fill-slangs {
  background: linear-gradient(90deg, #ff4757, #ff6b81);
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

/* Activity Feed Styling */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  align-items: center;
  transition: var(--transition-smooth);
}

.activity-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 71, 87, 0.2);
}

.activity-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-secondary);
}

.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-user-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.activity-username {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.activity-reason {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  display: inline-block;
}

.reason-spam {
  background-color: rgba(255, 165, 0, 0.12);
  color: var(--status-idle);
}

.reason-link {
  background-color: rgba(0, 255, 255, 0.12);
  color: var(--color-secondary);
}

.reason-slang {
  background-color: rgba(255, 71, 87, 0.12);
  color: var(--status-dnd);
}

.activity-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  font-family: monospace;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
}

.view-all-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.view-all-link:hover {
  text-shadow: var(--shadow-neon-cyan);
  text-decoration: underline;
}

/* Placeholder styles */
.no-data-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-dark);
  text-align: center;
  gap: 12px;
}

.no-data-placeholder i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.05);
}

.no-data-placeholder p {
  font-size: 0.9rem;
}

/* ==========================================================================
   ONLINE PLAYERS TAB STYLE
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 14px 24px;
  border-radius: 14px;
  margin-bottom: 28px;
}

.search-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 10px;
  width: 320px;
  transition: var(--transition-smooth);
}

.search-input-container:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.15);
}

.search-input-container i {
  color: var(--text-dark);
}

.search-input-container input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.9rem;
}

.search-input-container input::placeholder {
  color: var(--text-dark);
}

.filter-count-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.player-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(0, 255, 255, 0.25);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-4px);
}

.player-avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.player-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.03);
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
}

.status-dot.online { background-color: var(--status-online); }
.status-dot.idle { background-color: var(--status-idle); }
.status-dot.dnd { background-color: var(--status-dnd); }

.player-display-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-bottom: 2px;
}

.player-username {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.player-status-text {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.03);
}

.status-online-text { color: var(--status-online); }
.status-idle-text { color: var(--status-idle); }
.status-dnd-text { color: var(--status-dnd); }

/* Loading State Placeholders */
.loading-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(138, 43, 226, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   VOICE CHANNELS TAB STYLE
   ========================================================================== */
.voice-channel-legend {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  justify-content: flex-end;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-item i {
  font-size: 0.9rem;
}

.mute-color { color: var(--status-idle); }
.deafen-color { color: var(--status-dnd); }
.screen-share-color { color: var(--color-secondary); }

/* Flip the microphone-slash horizontally to match the slash angle of the deafen icon */
.fa-microphone-slash {
  display: inline-block;
  transform: scaleX(-1);
}

.voice-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0;
}

.voice-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.voice-channel-card:hover {
  border-color: rgba(138, 43, 226, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.voice-channel-header {
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-channel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-channel-title i {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.voice-channel-title h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.voice-channel-user-count {
  font-size: 0.75rem;
  background-color: var(--color-primary-glow);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.voice-channel-body {
  padding: 16px 20px;
  flex: 1;
}

.voice-members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
}

.voice-member-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.voice-member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.voice-member-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-member-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}

.voice-member-indicators i {
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

/* ==========================================================================
   MODERATION LOGS TABLE
   ========================================================================== */
.logs-table-card {
  width: 100%;
}

.scroll-table-container {
  overflow-x: auto;
  max-height: 600px;
}

.moderation-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.moderation-table th {
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.12);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.moderation-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.moderation-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

.moderation-table .log-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.moderation-table .log-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.moderation-table .log-timestamp {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.moderation-table .log-message-snippet {
  font-family: monospace;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-data-placeholder-row {
  text-align: center;
  padding: 60px !important;
  color: var(--text-dark);
}

.no-data-placeholder-row i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.1;
  display: block;
}

/* ==========================================================================
   SETTINGS (BYPASS ROLES) TAB STYLE
   ========================================================================== */
.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-info-card {
  display: flex;
  gap: 16px;
  background-color: rgba(88, 101, 242, 0.04);
  border: 1px solid rgba(88, 101, 242, 0.15);
  border-radius: 14px;
  padding: 20px;
}

.settings-info-icon {
  font-size: 1.5rem;
  color: #5865F2;
}

.settings-info-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.settings-info-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.settings-info-text p:last-child {
  margin-bottom: 0;
}

.settings-card {
  width: 100%;
}

.settings-card .card-header {
  flex-wrap: wrap;
  gap: 16px;
}

.small-search {
  width: 260px;
  padding: 6px 12px;
}

.roles-checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px;
}

.role-checkbox-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.role-checkbox-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.role-checkbox-item.checked {
  background-color: rgba(138, 43, 226, 0.05);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.05);
}

.role-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-dark);
  border-radius: 4px;
  margin-right: 14px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.role-checkbox-input:checked {
  border-color: var(--color-secondary);
  background-color: var(--color-secondary);
}

.role-checkbox-input:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  color: var(--bg-primary);
}

.role-checkbox-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.role-checkbox-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.role-id-label {
  font-size: 0.7rem;
  color: var(--text-dark);
  font-family: monospace;
}

.settings-card .card-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #12141c;
  border-left: 4px solid var(--color-primary);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  min-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  animation: slideInToast 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  transition: var(--transition-smooth);
}

@keyframes slideInToast {
  to { transform: translateX(0); }
}

.toast.success {
  border-left-color: var(--status-online);
}

.toast.error {
  border-left-color: var(--status-dnd);
}

.toast i {
  font-size: 1.2rem;
}

.toast.success i { color: var(--status-online); }
.toast.error i { color: var(--status-dnd); }

.toast-message {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .server-profile {
    padding: 20px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .server-avatar-container {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
  }
  .server-name {
    font-size: 1rem;
    margin-bottom: 0;
    width: auto;
    max-width: 180px;
  }
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
  }
  .nav-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
    gap: 8px;
  }
  .nav-link:hover {
    padding-left: 14px;
  }
  .sidebar-footer {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Custom Deafen Icon (Stacked headphones and slash) */
.deafen-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.deafen-icon-wrapper .fa-headphones {
  font-size: 0.85rem;
}

.deafen-icon-wrapper .fa-slash {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--status-dnd); /* Red */
  transform: scaleX(-1); /* mirror it to cross properly */
}

/* Password Protection Login Overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.login-overlay.hidden {
  display: none !important;
}

.login-card {
  background: #141421;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-5px); }
}

.login-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.login-card h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-light);
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.login-card p {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.login-input-wrapper {
  display: flex;
  background: #0b0b13;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
  transition: border-color 0.3s ease;
}

.login-input-wrapper:focus-within {
  border-color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.login-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  padding: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.25rem;
  outline: none;
  text-align: center;
}

.login-input-wrapper button {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border: none;
  color: white;
  padding: 0 20px;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.login-input-wrapper button:hover {
  opacity: 0.9;
}

.login-input-wrapper button:active {
  transform: scale(0.95);
}

.login-error-msg {
  color: #ff4757;
  font-size: 0.85rem;
  margin-top: 15px;
  min-height: 20px;
}

/* Shake Animation for Wrong Password */
.shake {
  animation: shakeAnimation 0.5s ease;
}

@keyframes shakeAnimation {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Welcome Settings Configurator */
.welcome-layout {
  max-width: 800px;
  margin: 0 auto;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
}

.emoji-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.emoji-picker-item:hover {
  transform: scale(1.1);
  border-color: rgba(138, 43, 226, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.emoji-picker-item.selected {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.emoji-picker-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.emoji-picker-item .emoji-name {
  font-size: 0.65rem;
  color: var(--text-dark);
  margin-top: 4px;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.checkout-channel-row .row-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.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.1);
  transition: 0.4s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
}

.slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #a4b0be;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
}

input:checked + .slider::before {
  transform: translateX(22px);
  background-color: #00f2fe;
}

/* Smiley Emoji Input Triggers */
.emoji-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.emoji-input-wrapper input {
  padding-right: 42px !important;
}

.emoji-picker-trigger {
  position: absolute;
  right: 12px;
  background: none !important;
  border: none !important;
  color: var(--text-dark) !important;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  box-shadow: none !important;
  transform: translateY(0);
}

.emoji-picker-trigger:hover {
  color: #fff !important;
  transform: scale(1.15);
}

.emoji-picker-trigger:active {
  transform: scale(0.95);
}

/* ==========================================================================
   WEB MUSIC DASHBOARD PANEL STYLING
   ========================================================================== */

.music-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.music-left-panel, .music-right-panel {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .music-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}


.music-np-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.music-cover-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.music-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-track-info {
  min-width: 0;
  flex: 1;
}

.music-track-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-track-info p {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctrl-btn {
  outline: none;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.ctrl-btn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.ctrl-btn:active {
  transform: translateY(0);
}

.ctrl-btn.play-active:hover {
  background: linear-gradient(135deg, #00f2fe, #4facfe) !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px) scale(1.05);
}

.ctrl-btn.stop-active:hover {
  background-color: rgba(255, 71, 87, 0.25) !important;
  border-color: #ff4757 !important;
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.2);
  transform: translateY(-2px);
}

/* Volume Slider Web Styling */
.web-volume-range {
  -webkit-appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.web-volume-range::-webkit-slider-runnable-track {
  height: 4px;
}

.web-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #00f2fe;
  cursor: pointer;
  margin-top: -5px;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
  transition: transform 0.1s ease;
}

.web-volume-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Search results list */
.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}

.search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 242, 254, 0.3);
}

.search-result-details {
  min-width: 0;
  flex: 1;
  margin-right: 0;
  overflow: hidden;
}


.search-result-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-author {
  font-size: 0.78rem;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-add-btn {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border: none;
  color: black;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s;
}

.search-result-add-btn:hover {
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  transform: scale(1.05);
}

/* Playlist list items */
.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.playlist-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playlist-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.playlist-meta {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.playlist-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.playlist-btn-load {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #5865F2;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.playlist-btn-load:hover {
  background: rgba(88, 101, 242, 0.22);
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.2);
}

.playlist-btn-delete {
  background: none;
  border: none;
  color: #ff4757;
  cursor: pointer;
  padding: 6px;
  font-size: 0.95rem;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-btn-delete:hover {
  color: #ff6b81;
  transform: scale(1.15);
}

/* ==========================================================================
   LICENSE GATEWAY & LIVE PREVIEW STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .license-grid-container,
  .credentials-grid-container {
    grid-template-columns: 1fr !important;
  }
}



