@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 10001;
  }
  .sidebar.sidebar-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    transition: opacity 0.3s;
  }
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
  body.sidebar-open {
    overflow: hidden;
  }
}
@media (max-width: 768px) {
  .sidebar {
    left: -280px !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: left 0.3s, opacity 0.3s;
  }
  .sidebar.sidebar-open {
    left: 0 !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 10001;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    transition: opacity 0.3s;
  }
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
  body.sidebar-open {
    overflow: hidden;
  }
}
/* Sidebar open/close for mobile */
@media (max-width: 768px) {
  .sidebar {
    left: -280px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .sidebar.sidebar-open {
    left: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 10001;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    transition: opacity 0.3s;
  }
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
  body.sidebar-open {
    overflow: hidden;
  }
}
/*
 * StreamNap Dashboard - Custom Styles
 * Author: Eduardo Ribeiro CGS27 Inc.
 * Created: October 28, 2025
 */

:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --brand-purple: #e94560;
  --success-color: #27ae60;
  --info-color: #3498db;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-color: #f8f9fa;
  --dark-color: #2c3e50;
  --text-light: #ecf0f1;
  --text-muted: #bdc3c7;
  --sidebar-width: 280px;
  --header-height: 70px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-glass: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  margin: 0;
  padding: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* Prevent body scroll when sidebar is open on mobile */
body.sidebar-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  body.sidebar-open {
    overflow: auto;
  }
}

/* Wrapper */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--gradient-primary);
  color: var(--text-light);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  top: 0;
  left: 0;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
}

.sidebar-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.sidebar-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-header .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: column;
  text-align: center;
}

.sidebar-header .brand-logo .logo-container {
  position: relative;
  padding: 0.5rem;
  border-radius: var(--border-radius-lg);
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.sidebar-header .brand-logo .logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: var(--border-radius);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.sidebar-header .brand-logo .brand-text h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.sidebar-header .brand-logo .brand-text .brand-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-menu {
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 0.25rem 1rem;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--border-radius);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.sidebar-menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-purple), rgba(233, 69, 96, 0.8));
  transition: width 0.3s ease;
  z-index: -1;
}

.sidebar-menu li a i {
  margin-right: 1rem;
  width: 1.25rem;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.sidebar-menu li a:hover::before,
.sidebar-menu li a.active::before {
  width: 4px;
}

/* Main content */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  transition: all 0.3s ease;
}

/* Collapsed sidebar (desktop) */
@media (min-width: 769px) {
  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%) !important;
  }
  body.sidebar-collapsed .main-content {
    margin-left: 0;
    width: 100%;
  }
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid rgba(26, 26, 46, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  margin-right: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.menu-toggle:hover {
  color: var(--brand-purple);
  background: rgba(233, 69, 96, 0.1);
  transform: scale(1.1);
}

.menu-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.2);
}

.header-left h4 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.notification-bell {
  position: relative;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--secondary-color);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.notification-bell:hover {
  color: var(--brand-purple);
  background: rgba(233, 69, 96, 0.1);
  transform: scale(1.1);
}

.notification-bell .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.user-profile img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.user-profile span {
  font-weight: 500;
  color: var(--dark-color);
}

/* Genre Cards Horizontal Scrolling */
.genre-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    height: auto;
    max-height: none;
}

.genre-cards-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0 10px;
    width: max-content;
  align-items: stretch; /* ensure flex alignment */
}

/* Second row should be independently scrollable when present */
.genre-cards-wrapper.second-row {
  width: max-content;
}

.genre-card {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
  margin: 0; /* ensure no extra outer spacing */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.genre-card:hover .genre-image {
    transform: scale(1.05);
}

.genre-card .card-img-top {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    height: 180px;
    object-fit: cover;
    width: 100%;
}

/* Specific styling for genre images */
.genre-image {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    height: 180px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .genre-card { width: 220px; min-width: 220px; }
  .genre-card .card-title { font-size: 1rem; }
  .genre-card .card-text { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .genre-card { width: 180px; min-width: 180px; }
  .genre-card .card-title { font-size: 0.95rem; }
  .genre-card .card-text { font-size: 0.85rem; }
}

.genre-card .card-body {
    padding: 1rem;
}

.genre-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.genre-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Custom Scrollbar */
.genre-scroll-container::-webkit-scrollbar {
    height: 8px;
    width: 0px;
}

.genre-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.genre-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.genre-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Navigation Buttons */
.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Music Player Modal Styling */
.music-player-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    color: white;
}

.music-player-modal .modal-header {
    border-bottom: none;
    position: relative;
    cursor: move;
    user-select: none;
}

.music-player-modal .modal-header:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
}

/* Large StreamNap Logo - positioned under title */
.streamnap-logo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 30px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    position: relative;
    z-index: 2;
    animation: spin 12s linear infinite;
}

/* Dark vinyl circle behind logo */
.streamnap-logo-large::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 256px;
    height: 256px;
    background: radial-gradient(circle, #2a2a2a 0%, #1a1a1a 70%, #0a0a0a 100%);
    border-radius: 50%;
    z-index: -1;
    animation: spin 12s linear infinite;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.song-info h4 {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-container {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Read-only progress bar styling */
.progress-container .progress {
    position: relative;
}

.progress-container .progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 4px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    flex: 1;
    cursor: default; /* Changed from pointer to default */
    pointer-events: none; /* Disable all pointer interactions */
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}

.time-display {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 45px;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-control:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.btn-control-main {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    background-color: #fff;
    color: #667eea;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-control-main:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Picture-in-Picture button styling */
.btn-control {
    position: relative;
    overflow: hidden;
}

.btn-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4);
}

#pipBtn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
}

#pipBtn:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: scale(1.1);
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    margin: 0 auto;
}

.form-range {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    height: 8px;
}

.form-range::-webkit-slider-thumb {
    background-color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.now-playing .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(40, 167, 69, 0.9) !important;
    animation: pulse 2s infinite;
}

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

.btn-close-white {
    filter: invert(1);
}

/* Bootstrap Dropdown Styling for User Menu */
.navbar .dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}

.navbar .dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--dark-color);
  text-decoration: none;
  background-color: transparent;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.15s ease-in-out;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: var(--light-color);
  color: var(--dark-color);
}

.navbar .dropdown-item i {
  width: 1rem;
  text-align: center;
}

.navbar .dropdown-divider {
  margin: 0.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Language selection within dropdown */
.language-item {
  padding: 0.25rem 1rem !important;
  font-size: 0.8rem !important;
  color: var(--secondary-color) !important;
}

.language-item:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Content area */
.content {
  padding: 2.5rem;
  background: transparent;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-header {
  background: rgba(26, 26, 46, 0.05);
  border-bottom: 1px solid rgba(26, 26, 46, 0.1);
  padding: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.card-body {
  padding: 1.5rem;
}

/* Stats cards */
.stats-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-purple), var(--accent-color));
}

.stats-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stats-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: white;
}

.stats-icon.primary { background: var(--primary-color); }
.stats-icon.success { background: var(--success-color); }
.stats-icon.info { background: var(--info-color); }
.stats-icon.warning { background: var(--warning-color); }

.stats-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.stats-label {
  color: var(--secondary-color);
  font-size: 0.875rem;
  margin: 0;
}

/* Tables */
.table {
  background: white;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: var(--dark-color);
  background-color: var(--light-color);
}

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

.form-control {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Mobile First Approach - Default mobile styles */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .menu-toggle {
    display: block !important;
    visibility: visible !important;
  }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    max-width: 280px;
  }
  
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .content {
    padding: 1.5rem;
  }
  
  .header {
    padding: 0 1.5rem;
  }
  
  .header-left h4 {
    font-size: 1.25rem;
  }
  
  .sidebar-header .brand-logo {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }
  
  .sidebar-header .brand-logo .logo-container {
    padding: 0.5rem;
  }
  
  .sidebar-header .brand-logo .logo-img {
    width: 60px;
    height: 60px;
  }
  
  .sidebar-header .brand-logo .brand-text h3 {
    font-size: 1.25rem;
  }
  
  .sidebar-header .brand-logo .brand-text .brand-subtitle {
    font-size: 0.75rem;
  }
  
  .stats-card {
    margin-bottom: 1.5rem;
  }
  
  .menu-toggle {
    display: block !important;
    color: var(--primary-color) !important;
    background: rgba(26, 26, 46, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Mobile overlay for sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: none;
}

@media (max-width: 991px) {
  .sidebar-overlay {
    display: block;
  }
  
  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0) !important;
    position: fixed;
  }
  
  .main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }
  
  .sidebar-overlay {
    display: none !important;
  }
  
  .sidebar-close {
    display: none !important;
  }
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

/* StreamNap Specific Enhancements */
.brand-logo {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover .logo-container {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 20px 40px rgba(233, 69, 96, 0.3);
}

.brand-logo:hover .logo-img {
  filter: drop-shadow(0 8px 16px rgba(233, 69, 96, 0.4));
}

.stats-card .stats-icon.brand {
  background: linear-gradient(135deg, var(--brand-purple), #c73650);
}

/* Premium animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(233, 69, 96, 0.3); }
  50% { box-shadow: 0 0 30px rgba(233, 69, 96, 0.6), 0 0 50px rgba(233, 69, 96, 0.4); }
  100% { box-shadow: 0 0 5px rgba(233, 69, 96, 0.3); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.logo-container {
  animation: float 6s ease-in-out infinite;
}

.notification-bell.has-notifications {
  animation: glow 2s infinite;
}

/* Glass morphism effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced hover effects */
.sidebar-menu li a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0;
  height: 2px;
  background: var(--brand-purple);
  transition: width 0.3s ease;
  transform: translateY(-50%);
}

.sidebar-menu li a:hover::after,
.sidebar-menu li a.active::after {
  width: 20px;
}

/* Sophisticated button styles */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  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.2), transparent);
  transition: left 0.5s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 26, 46, 0.3);
}

/* Language Selector Styles */
.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-selector select, #languageSelector {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 0.875rem;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.language-selector select:hover, #languageSelector:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.language-selector select:focus, #languageSelector:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.language-selector select:disabled, #languageSelector:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.language-selector select option, #languageSelector option {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 0.5rem;
}

.language-selector i {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Language selector in navbar specific styling */
.language-switcher-navbar select {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}