
/* Base styles */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --border: #334155;
  --card-bg: #1e293b;
  --glass-effect: rgba(30, 41, 59, 0.7);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(at 80% 0%, hsla(249, 64%, 13%, 0.5) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(253, 64%, 13%, 0.5) 0px, transparent 50%);
}
/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}
/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.float {
  animation: float 3s ease-in-out infinite;
}
/* Table styles */
.table-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-effect);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  text-align: left;
  padding: 1rem;
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  font-weight: 500;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: rgba(124, 58, 237, 0.08);
}
/* Card styles */
.card {
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--glass-effect);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(30, 41, 59, 0.1));
  z-index: -1;
  border-radius: inherit;
}
.card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.card-value {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}
.card-sub {
  font-size: 0.75rem;
  color: #718096;
}
/* Button styles */
.btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, #7c3aed, #6d28d9);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(to right, #8b5cf6, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.05);
}
/* Input styles */
input, select, textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: static;
  }
  
  .main {
    margin-left: 0;
  }
  
  .cards-row {
    grid-template-columns: 1fr;
  }
  
  /* More compact elements on mobile */
  .card {
    padding: 1rem;
  }
  
  th, td {
    padding: 0.75rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Modern rounded corners */
.rounded-lg {
  border-radius: 12px;
}

.rounded-xl {
  border-radius: 16px;
}

/* Glow effects */
.glow {
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

.glow-sm {
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

/* Neon accent border */
.neon-border {
  position: relative;
}

.neon-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Futuristic font stack */
.font-system {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, #8b5cf6, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cyberpunk divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #8b5cf6, transparent);
  margin: 1.5rem 0;
  opacity: 0.3;
}
/* Text colors */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent);
}
