/* ======================================================================
   CerebroChain Neural Theme - Consolidated CSS
   Production-ready styles with inline content (no @imports)
   ====================================================================== */

/* ======================================================================
   CSS Reset & Base Styles
   ====================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #f8fafc;
  overflow-x: hidden;
}

/* ======================================================================
   CSS Custom Properties - Hemisphere Theming
   ====================================================================== */
:root {
  /* WMS Hemisphere - Blue (Primary Theme) */
  --navbar-neural-primary: #3b82f6;
  --navbar-neural-secondary: #2563eb;
  --navbar-neural-accent: #3b82f6;
  --navbar-neural-light: #dbeafe;
  --navbar-neural-glow: rgba(59, 130, 246, 0.3);
  --navbar-neural-gradient-start: #3b82f6;
  --navbar-neural-gradient-end: #1e40af;

  /* Logistics Hemisphere - Green */
  --neural-logistics-primary: #00843d;
  --neural-logistics-secondary: #059669;
  --neural-logistics-accent: #10b981;
  --neural-logistics-light: #d1fae5;
  --neural-logistics-glow: rgba(16, 185, 129, 0.3);

  /* Executive Hemisphere - Purple */
  --neural-executive-primary: #5e35b1;
  --neural-executive-secondary: #7c3aed;
  --neural-executive-accent: #8b5cf6;
  --neural-executive-light: #ede9fe;
  --neural-executive-glow: rgba(139, 92, 246, 0.3);

  /* Base Neural Colors */
  --neural-background: #0f172a;
  --neural-surface: #1e293b;
  --neural-surface-light: #334155;
  --neural-text: #f8fafc;
  --neural-text-secondary: #cbd5e1;
  --neural-text-muted: #64748b;
  --neural-border: #475569;
  --neural-border-light: #64748b;

  /* Primary Brand Colors (Blue Theme) */
  --neural-bg-primary: var(--neural-background);
  --neural-text-primary: var(--neural-text);
  --neural-primary: var(--navbar-neural-primary);
  --neural-secondary: var(--navbar-neural-secondary);
  --neural-accent: var(--navbar-neural-accent);
  --neural-gradient-primary: linear-gradient(135deg, var(--navbar-neural-gradient-start), var(--navbar-neural-gradient-end));
}

/* ======================================================================
   Typography
   ====================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--neural-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--neural-text-secondary);
}

a {
  color: var(--neural-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--neural-accent);
}

/* ======================================================================
   Buttons
   ====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--neural-gradient-primary);
  color: white;
  box-shadow: 0 4px 15px var(--navbar-neural-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--navbar-neural-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--neural-primary);
  border: 2px solid var(--neural-primary);
}

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

/* ======================================================================
   Cards
   ====================================================================== */
.card {
  background: var(--neural-surface);
  border: 1px solid var(--neural-border);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--neural-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ======================================================================
   Navigation
   ====================================================================== */
.navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neural-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-link {
  color: var(--neural-text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--neural-primary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
  color: var(--neural-primary);
  background: var(--navbar-neural-glow);
}

/* ======================================================================
   Forms
   ====================================================================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--neural-surface);
  border: 1px solid var(--neural-border);
  border-radius: 0.5rem;
  color: var(--neural-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--neural-primary);
  box-shadow: 0 0 0 3px var(--navbar-neural-glow);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--neural-text);
  font-weight: 500;
}

/* ======================================================================
   Layout Components
   ====================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neural-gradient-primary);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ======================================================================
   Neural Animations
   ====================================================================== */
@keyframes neuralPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.neural-pulse {
  animation: neuralPulse 2s ease-in-out infinite;
}

@keyframes neuralGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--navbar-neural-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--navbar-neural-glow), 0 0 60px var(--navbar-neural-glow);
  }
}

.neural-glow {
  animation: neuralGlow 3s ease-in-out infinite;
}

/* ======================================================================
   Responsive Design
   ====================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .container {
    padding: 0 0.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  body {
    font-size: 0.9rem;
  }
}

/* ======================================================================
   Utilities
   ====================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ======================================================================
   Loading States
   ====================================================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--neural-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--neural-border);
  border-top: 3px solid var(--neural-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======================================================================
   Main Application Container
   ====================================================================== */
.app-container {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ensure proper color scheme is applied */
body, .app-container {
  background: var(--neural-bg-primary);
  color: var(--neural-text-primary);
}