/* Sidebar Styles - Shared across all dashboard pages */

/* SVG Size Utilities */
.w-3 { width: 12px; height: 12px; }
.h-3 { width: 12px; height: 12px; }
.w-4 { width: 16px; height: 16px; }
.h-4 { width: 16px; height: 16px; }
.w-5 { width: 20px; height: 20px; }
.h-5 { width: 20px; height: 20px; }

.sidebar { 
  position: fixed; 
  left: 0; 
  top: 0; 
  bottom: 0; 
  width: 260px; 
  background: var(--sidebar-bg, rgba(0, 0, 0, 0.8)); 
  backdrop-filter: blur(40px); 
  border-right: 1px solid var(--border, rgba(255, 255, 255, 0.06)); 
  z-index: 100; 
  display: flex; 
  flex-direction: column;
  transition: background 0.3s, border-color 0.3s;
}

.sidebar-header { 
  padding: 20px 24px; 
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06)); 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}

.sidebar-header img:not(.lang-flag) {
  filter: var(--logo-filter, brightness(0) invert(1));
  transition: filter 0.3s;
}

.lang-flag {
  filter: none !important;
}

.sidebar-nav { 
  flex: 1; 
  padding: 8px 12px; 
  overflow-y: auto; 
}

.nav-label { 
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  color: var(--text-muted, rgba(255, 255, 255, 0.3)); 
  padding: 12px 16px 6px; 
  font-weight: 600; 
}

.nav-item { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  padding: 10px 16px; 
  border-radius: 10px; 
  color: var(--text-muted, rgba(255, 255, 255, 0.5)); 
  font-size: 14px; 
  text-decoration: none; 
  transition: all 0.15s; 
  margin-bottom: 1px; 
}

.nav-item:hover { 
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.05)); 
  color: var(--text, #fff); 
}

.nav-item.active { 
  background: rgba(var(--accent-rgb, 16, 185, 129), 0.1); 
  color: var(--accent, #10b981); 
}

.sidebar-footer { 
  padding: 16px; 
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06)); 
}

.user-card { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 14px; 
  border-radius: 12px; 
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.04)); 
  margin-bottom: 12px; 
  cursor: pointer; 
}

.user-avatar { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  overflow: hidden; 
  border: 2px solid var(--border, rgba(255, 255, 255, 0.1)); 
}

.user-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.lang-switcher { 
  position: relative; 
}

.lang-btn { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  padding: 6px 10px; 
  border-radius: 8px; 
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.05)); 
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08)); 
  color: var(--text-secondary, rgba(255, 255, 255, 0.7)); 
  font-size: 12px; 
  cursor: pointer; 
  transition: all 0.2s; 
}

.lang-btn:hover { 
  background: var(--border, rgba(255, 255, 255, 0.08)); 
  color: var(--text, #fff); 
}

.lang-dropdown { 
  position: absolute; 
  top: 100%; 
  right: 0; 
  margin-top: 8px; 
  background: var(--card-bg, rgba(10, 10, 10, 0.95)); 
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1)); 
  border-radius: 12px; 
  padding: 8px; 
  min-width: 140px; 
  opacity: 0; 
  visibility: hidden; 
  transform: translateY(-10px); 
  transition: all 0.2s; 
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.lang-switcher.open .lang-dropdown { 
  opacity: 1; 
  visibility: visible; 
  transform: translateY(0); 
}

.lang-option { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 8px 12px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-size: 13px; 
  color: var(--text-secondary, rgba(255, 255, 255, 0.7)); 
  transition: all 0.15s; 
}

.lang-option:hover { 
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.08)); 
  color: var(--text, #fff); 
}

.lang-flag { 
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
}

.linked-accounts { 
  padding: 0; 
}

.linked-account { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 10px 14px; 
  font-size: 13px; 
}

.linked-account-icon { 
  width: 28px; 
  height: 28px; 
  min-width: 28px;
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.linked-account-icon svg {
  width: 16px;
  height: 16px;
}

.linked-account-icon.discord { 
  background: rgba(88, 101, 242, 0.2); 
  color: #5865f2; 
}

.linked-account-icon.telegram { 
  background: rgba(0, 136, 204, 0.2); 
  color: #0088cc; 
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0 !important;
    padding-top: 70px;
  }

  .content {
    padding: 16px !important;
  }

  /* Stats grid */
  .stats-grid,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Cards */
  .stat-card,
  .card {
    padding: 16px !important;
  }

  /* Product cards */
  .sub-card {
    min-width: 100% !important;
  }

  /* Modals */
  .modal {
    max-width: 100% !important;
    margin: 10px !important;
    border-radius: 20px !important;
  }

  .modal-body {
    padding: 0 20px 20px !important;
  }

  .modal-footer {
    padding: 16px 20px 20px !important;
  }

  /* Config grid */
  .config-grid {
    grid-template-columns: 1fr !important;
  }

  /* Filters */
  .filters-bar {
    flex-direction: column !important;
  }

  .search-input {
    width: 100% !important;
  }

  /* Tabs */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Item layout */
  .item-layout {
    grid-template-columns: 1fr !important;
  }

  .purchase-card {
    position: static !important;
  }

  /* Related grid */
  .related-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  footer {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
}

/* Anti-copy protection */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
