/* Common styles shared across all pages */

/* Base body styles */
body {
  background: linear-gradient(135deg, #0a1628 0%, #0f2140 50%, #152d4f 100%);
  min-height: 100vh;
}

/* Glass card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glow effects */
.gold-glow {
  box-shadow: 0 0 40px rgba(212, 168, 85, 0.15);
}

.teal-glow {
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.15);
}

.input-glow:focus {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }

/* Loading dots animation */
.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Shimmer loading effect */
.shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.03) 25%, 
    rgba(255,255,255,0.08) 50%, 
    rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Toast notification */
.toast {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Navigation item active state */
.nav-item.active {
  background: rgba(45, 212, 191, 0.1);
  color: #2dd4bf;
}

.nav-item.active svg {
  color: #2dd4bf;
}

/* Sidebar responsive */
@media (min-width: 1024px) {
  #mainSidebar {
    transform: translateX(0) !important;
  }
  #pageContent {
    margin-left: 16rem;
  }
  #sidebarToggle {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  #mainSidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
  }
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(4px);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s;
}

/* User dropdown menu */
.user-dropdown {
  display: none;
}

.user-dropdown.open {
  display: block;
}
