/* ===== DASHBOARD LAYOUT CSS ===== */
/* Modern Gaming Dashboard with Enhanced Animations and Responsive Design */

/* ===== ROOT VARIABLES ===== */
:root {
  /* Dashboard Specific Colors */
  --dashboard-bg-primary: #0a0a0f;
  --dashboard-bg-secondary: #1a1a2e;
  --dashboard-bg-card: #16213e;
  --dashboard-bg-surface: #252545;

  /* Dashboard Borders */
  --dashboard-border-primary: rgba(0, 255, 255, 0.3);
  --dashboard-border-secondary: rgba(168, 85, 247, 0.3);
  --dashboard-border-accent: rgba(0, 255, 255, 0.2);

  /* Dashboard Shadows */
  --dashboard-shadow-glow: 0 0 20px rgba(168, 85, 247, 0.4);
  --dashboard-shadow-neon: 0 0 30px rgba(0, 255, 255, 0.6);
  --dashboard-shadow-card: 0 4px 30px rgba(147, 51, 234, 0.3);
  --dashboard-shadow-intense: 0 0 40px rgba(0, 255, 255, 0.1);

  /* Dashboard Transitions */
  --dashboard-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --dashboard-transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --dashboard-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --dashboard-transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== MAIN LAYOUT CONTAINER ===== */
.dashboard-main-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dashboard-bg-primary) 0%, var(--dashboard-bg-secondary) 100%);
  position: relative;
  overflow-x: hidden;
}

.dashboard-layout-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Background Pattern Animation */
.dashboard-main-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: dashboard-bg-float 20s ease-in-out infinite;
}

@keyframes dashboard-bg-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

/* ===== MOBILE HEADER ===== */
.dashboard-mobile-header {
  background: var(--dashboard-bg-card) !important;
  border-bottom: 2px solid var(--dashboard-border-primary) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.dashboard-mobile-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.dashboard-mobile-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-mobile-header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-mobile-header-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-game-primary);
  box-shadow: var(--dashboard-shadow-glow);
  animation: dashboard-icon-pulse 3s ease-in-out infinite;
}

@keyframes dashboard-icon-pulse {
  0%, 100% { box-shadow: var(--dashboard-shadow-glow); }
  50% { box-shadow: var(--dashboard-shadow-neon); }
}

.dashboard-mobile-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary) !important;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.dashboard-mobile-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-game-primary);
  transition: var(--dashboard-transition-medium);
}

.dashboard-mobile-user-avatar:hover {
  transform: scale(1.1);
  box-shadow: var(--dashboard-shadow-neon);
}

/* ===== MOBILE SIDEBAR OVERLAY ===== */
.dashboard-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  transition: var(--dashboard-transition-medium);
}

.dashboard-mobile-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
  width: 20rem;
  background: var(--dashboard-bg-surface) !important;
  border-right: 2px solid var(--dashboard-border-secondary) !important;
  box-shadow:
    4px 0 20px rgba(168, 85, 247, 0.1),
    inset -1px 0 0 rgba(0, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensure proper flex layout */
}

/* Mobile Sidebar */
.dashboard-sidebar-mobile {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-sidebar-mobile.open {
  transform: translateX(0);
}

/* Desktop Sidebar */
.dashboard-sidebar-desktop {
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

/* Sidebar Glow Effect */
.dashboard-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-game-neon-cyan) 20%,
    var(--color-game-purple-500) 50%,
    var(--color-game-neon-cyan) 80%,
    transparent 100%
  );
  animation: dashboard-sidebar-glow 4s ease-in-out infinite;
}

@keyframes dashboard-sidebar-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ===== SIDEBAR CLOSE BUTTON (Mobile) ===== */
.dashboard-sidebar-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--dashboard-border-primary) !important;
}

.dashboard-sidebar-close-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary) !important;
}

/* ===== SIDEBAR HEADER ===== */
.dashboard-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--dashboard-border-primary) !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(0, 255, 255, 0.05));
  position: relative;
}

.dashboard-sidebar-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-sidebar-header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-game-primary);
  box-shadow: var(--dashboard-shadow-glow);
  transition: var(--dashboard-transition-medium);
}

.dashboard-sidebar-header-icon:hover {
  transform: rotate(5deg) scale(1.05);
  box-shadow: var(--dashboard-shadow-neon);
}

.dashboard-sidebar-header-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary) !important;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  margin: 0;
  line-height: 1.2;
}

.dashboard-sidebar-header-text p {
  font-size: 0.875rem;
  color: var(--color-text-secondary) !important;
  margin: 0.25rem 0 0 0;
  line-height: 1.2;
}

/* ===== USER INFO SECTION ===== */
.dashboard-user-info {
  padding: 1.5rem;
  border-bottom: 1px solid var(--dashboard-border-secondary) !important;
  background: var(--gradient-game-dark) !important;
  border: 1px solid var(--dashboard-border-accent);
  position: relative;
  overflow: hidden;
}

.dashboard-user-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.05), rgba(168, 85, 247, 0.05));
  animation: dashboard-user-glow 6s ease-in-out infinite;
}

@keyframes dashboard-user-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.dashboard-user-info-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.dashboard-user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-game-secondary);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transition: var(--dashboard-transition-bounce);
}

.dashboard-user-avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

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

.dashboard-user-name {
  font-weight: 600;
  color: var(--color-text-primary) !important;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
  font-size: 0.875rem;
  line-height: 1.2;
  margin: 0;
}

.dashboard-user-status {
  font-size: 0.75rem;
  color: var(--color-text-secondary) !important;
  margin: 0.25rem 0 0 0;
  line-height: 1.2;
}

.dashboard-user-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-game-neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
  animation: dashboard-user-pulse 2s ease-in-out infinite;
}

@keyframes dashboard-user-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ===== NAVIGATION MENU ===== */
.dashboard-nav-menu {
  padding: 1rem 1.5rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 300px); /* Ensure scrollable area */
  max-height: calc(100vh - 300px);
  scroll-behavior: smooth;
}

/* Enhanced Scrollbar for Better UX */
.dashboard-nav-menu::-webkit-scrollbar {
  width: 8px;
}

.dashboard-nav-menu::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.3);
  border-radius: 4px;
  margin: 0.5rem 0;
}

.dashboard-nav-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--color-game-purple-500) 0%,
    var(--color-game-neon-cyan) 50%,
    var(--color-game-purple-700) 100%
  );
  border-radius: 4px;
  box-shadow:
    0 0 10px rgba(168, 85, 247, 0.4),
    inset 0 0 10px rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.dashboard-nav-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--color-game-neon-cyan) 0%,
    var(--color-game-purple-500) 50%,
    var(--color-game-neon-cyan) 100%
  );
  box-shadow:
    0 0 15px rgba(0, 255, 255, 0.6),
    inset 0 0 15px rgba(168, 85, 247, 0.3);
  transform: scaleY(1.1);
}

.dashboard-nav-menu::-webkit-scrollbar-thumb:active {
  background: var(--gradient-game-secondary);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.8),
    inset 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Firefox Scrollbar */
.dashboard-nav-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--color-game-purple-500) rgba(26, 26, 46, 0.3);
}

/* ===== MENU ITEMS ===== */
.dashboard-menu-item {
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--color-text-secondary);
  transition: var(--dashboard-transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  align-items: center;
}

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

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

.dashboard-menu-item:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--color-text-primary);
  transform: translateX(4px);
  box-shadow:
    0 4px 20px rgba(168, 85, 247, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.dashboard-menu-item.active {
  background: var(--gradient-game-secondary);
  color: white;
  box-shadow: var(--dashboard-shadow-neon);
  transform: translateX(8px);
}

.dashboard-menu-item.active::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2px;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--color-game-neon-cyan);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 0 10px var(--color-game-neon-cyan);
}

.dashboard-menu-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 2.5rem;
}

.dashboard-menu-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--dashboard-transition-bounce);
  flex-shrink: 0;
}

.dashboard-menu-item-icon.inactive {
  background: rgba(168, 85, 247, 0.1);
  color: var(--color-game-purple-300);
}

.dashboard-menu-item-icon.active {
  background: var(--gradient-game-secondary);
  box-shadow: var(--dashboard-shadow-neon);
}

.dashboard-menu-item:hover .dashboard-menu-item-icon {
  transform: scale(1.1) rotate(5deg);
}

.dashboard-menu-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dashboard-menu-item-title {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-menu-item-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-secondary) !important;
  margin: 0.25rem 0 0 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-menu-item-arrow {
  font-size: 0.75rem;
  transition: var(--dashboard-transition-medium);
  flex-shrink: 0;
}

.dashboard-menu-item-arrow.inactive {
  color: var(--color-game-purple-400) !important;
}

.dashboard-menu-item-arrow.active {
  color: var(--color-game-neon-cyan) !important;
}

.dashboard-menu-item:hover .dashboard-menu-item-arrow {
  transform: translateX(4px);
}

/* ===== SECTION DIVIDERS ===== */
.dashboard-section-divider {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  margin-top: 1rem;
}

.dashboard-section-divider-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-section-divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-game-purple-300),
    var(--color-game-neon-cyan),
    var(--color-game-purple-300),
    transparent
  );
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.dashboard-section-divider-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(45deg, var(--color-game-purple-400), var(--color-game-neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  animation: dashboard-section-glow 3s ease-in-out infinite alternate;
  white-space: nowrap;
}

@keyframes dashboard-section-glow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

/* ===== MAIN CONTENT AREA ===== */
.dashboard-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.dashboard-content-responsive {
  margin-left: 0;
}

/* ===== DESKTOP TOP BAR ===== */
.dashboard-header-bar {
  background: var(--dashboard-bg-card) !important;
  border-bottom: 2px solid var(--dashboard-border-primary) !important;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.dashboard-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-header-left h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary) !important;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
  margin: 0;
  line-height: 1.2;
}

.dashboard-header-left p {
  color: var(--color-text-secondary) !important;
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  line-height: 1.2;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-header-button {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--color-game-purple-300) !important;
  cursor: pointer;
  transition: var(--dashboard-transition-medium);
  position: relative;
}

.dashboard-header-button:hover {
  color: var(--color-game-neon-cyan) !important;
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.dashboard-header-user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--dashboard-transition-medium);
}

.dashboard-header-user-menu:hover {
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.dashboard-header-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-game-primary);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.dashboard-header-user-name {
  font-weight: 500;
  color: var(--color-text-primary) !important;
  font-size: 0.875rem;
}

.dashboard-header-user-arrow {
  font-size: 0.75rem;
  color: var(--color-game-neon-cyan) !important;
}

/* ===== PAGE CONTENT ===== */
.dashboard-page-content {
  flex: 1;
  padding: 1rem 2rem 1.5rem 2rem;
}

.dashboard-content-wrapper {
  max-width: 7xl;
  margin: 0 auto;
}

.dashboard-main-card {
  background: var(--dashboard-bg-card) !important;
  border: 2px solid var(--dashboard-border-accent) !important;
  border-radius: 1rem;
  padding: 1rem 2rem;
  box-shadow:
    var(--dashboard-shadow-card),
    var(--dashboard-shadow-intense) !important;
  position: relative;
  overflow: hidden;
}

.dashboard-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.02), rgba(168, 85, 247, 0.02));
  pointer-events: none;
}

.dashboard-main-card > * {
  position: relative;
  z-index: 2;
}

/* ===== ERROR/FALLBACK CONTENT ===== */
.dashboard-error-container {
  text-align: center;
  padding: 2rem 3rem;
}

.dashboard-error-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-game-accent);
  box-shadow: var(--dashboard-shadow-glow);
  animation: dashboard-error-pulse 2s ease-in-out infinite;
}

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

.dashboard-error-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary) !important;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  margin-bottom: 0.5rem;
}

.dashboard-error-description {
  font-size: 0.875rem;
  color: var(--color-text-secondary) !important;
  margin: 0;
}

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

/* Large Screens (lg and up) */
@media (min-width: 1024px) {
  .dashboard-page-content {
    padding: 1.5rem 2rem;
  }

  .dashboard-main-card {
    padding: 2rem;
  }

  .dashboard-error-container {
    padding: 3rem;
  }

  .dashboard-error-icon {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1.5rem;
  }

  .dashboard-error-title {
    font-size: 1.5rem;
  }

  .dashboard-error-description {
    font-size: 1rem;
  }
}

/* Medium Screens */
@media (max-width: 1023px) {
  .dashboard-sidebar-desktop {
    display: none;
  }

  .dashboard-header-bar {
    display: none;
  }
}

/* Small Screens */
@media (max-width: 768px) {
  .dashboard-page-content {
    padding: 1rem;
  }

  .dashboard-main-card {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .dashboard-sidebar {
    width: 18rem;
  }

  .dashboard-user-info,
  .dashboard-sidebar-header,
  .dashboard-nav-menu {
    padding: 0.75rem;
  }

  /* Mobile-first menu simplification */
  .dashboard-nav-menu {
    padding: 0.5rem;
    height: calc(100vh - 250px);
  }

  .dashboard-menu-item {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
  }

  .dashboard-menu-item-content {
    gap: 0.5rem;
  }

  .dashboard-menu-item-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
  }

  .dashboard-menu-item-title {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .dashboard-menu-item-subtitle {
    font-size: 0.65rem;
    opacity: 0.8;
  }

  .dashboard-menu-item-arrow {
    font-size: 0.65rem;
  }

  /* Simplified section dividers on mobile */
  .dashboard-section-divider {
    padding-top: 1rem;
    padding-bottom: 0.25rem;
    margin-top: 0.5rem;
  }

  .dashboard-section-divider-text {
    font-size: 0.65rem;
    padding: 0 0.5rem;
    letter-spacing: 0.02em;
  }

  .dashboard-section-divider-line {
    height: 1px;
  }

  /* Simplified user info on mobile */
  .dashboard-user-info {
    padding: 0.75rem;
  }

  .dashboard-user-avatar {
    width: 2rem;
    height: 2rem;
  }

  .dashboard-user-name {
    font-size: 0.8rem;
  }

  .dashboard-user-status {
    font-size: 0.65rem;
  }

  /* Simplified sidebar header on mobile */
  .dashboard-sidebar-header {
    padding: 0.75rem;
  }

  .dashboard-sidebar-header-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .dashboard-sidebar-header-text h1 {
    font-size: 1rem;
  }

  .dashboard-sidebar-header-text p {
    font-size: 0.75rem;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  .dashboard-sidebar {
    width: 16rem;
  }

  .dashboard-mobile-header-content {
    padding: 0.5rem;
  }

  .dashboard-page-content {
    padding: 0.75rem;
  }

  .dashboard-main-card {
    padding: 0.75rem;
  }

  /* Ultra-compact mobile design */
  .dashboard-nav-menu {
    padding: 0.25rem;
    height: calc(100vh - 220px);
  }

  .dashboard-menu-item {
    padding: 0.375rem;
    margin-bottom: 0.125rem;
  }

  .dashboard-menu-item-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .dashboard-menu-item-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.1;
  }

  .dashboard-menu-item-subtitle {
    font-size: 0.6rem;
    margin-top: 0.125rem;
    line-height: 1.1;
  }

  .dashboard-menu-item-arrow {
    font-size: 0.6rem;
  }

  .dashboard-section-divider {
    padding-top: 0.75rem;
    padding-bottom: 0.125rem;
    margin-top: 0.25rem;
  }

  .dashboard-section-divider-text {
    font-size: 0.6rem;
    padding: 0 0.25rem;
  }

  .dashboard-user-info {
    padding: 0.5rem;
  }

  .dashboard-user-avatar {
    width: 1.75rem;
    height: 1.75rem;
  }

  .dashboard-user-name {
    font-size: 0.75rem;
  }

  .dashboard-user-status {
    font-size: 0.6rem;
  }

  .dashboard-sidebar-header {
    padding: 0.5rem;
  }

  .dashboard-sidebar-header-icon {
    width: 2rem;
    height: 2rem;
  }

  .dashboard-sidebar-header-text h1 {
    font-size: 0.875rem;
  }

  .dashboard-sidebar-header-text p {
    font-size: 0.65rem;
  }

  .dashboard-sidebar-close {
    padding: 0.5rem;
  }

  .dashboard-sidebar-close-text {
    font-size: 1rem;
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .dashboard-nav-menu {
    height: calc(100vh - 180px);
  }

  .dashboard-menu-item {
    padding: 0.375rem;
  }

  .dashboard-user-info,
  .dashboard-sidebar-header {
    padding: 0.5rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --dashboard-border-primary: rgba(255, 255, 255, 0.8);
    --dashboard-border-secondary: rgba(255, 255, 255, 0.6);
    --dashboard-border-accent: rgba(255, 255, 255, 0.4);
  }

  .dashboard-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .dashboard-menu-item.active {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .dashboard-sidebar,
  .dashboard-mobile-header,
  .dashboard-header-bar {
    display: none;
  }

  .dashboard-content-area {
    margin-left: 0;
  }

  .dashboard-main-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
