/* Lumina Global Inspired Design System */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-bg: #0a0e1a;
  --dark-card: #14192e;
  --dark-card-hover: #1a2138;
  --dark-border: #1f2937;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent zoom on input focus (iOS Safari) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Background Gradient */
.bg-gradient {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 50%, #0a0e1a 100%);
  position: relative;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--accent-blue);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  font-size: 20px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: var(--dark-card);
  color: var(--text-primary);
  border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
  background: var(--dark-card-hover);
  border-color: var(--accent-blue);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
  background: var(--accent-blue);
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-border);
  padding: 16px 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.navbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: var(--text-primary);
}

/* Sidebar */
.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--dark-card);
  border-right: 1px solid var(--dark-border);
  position: fixed;
  top: 0;
  left: 0;
  padding: 24px;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .sidebar {
    width: 280px;
    padding: 20px 16px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.4);
  }
  
  .sidebar-menu-item a {
    padding: 14px 16px;
    font-size: 15px;
    min-height: 48px;
  }
  
  .sidebar-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }
  
  .sidebar-header h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 100%;
    max-width: 320px;
  }
}

.sidebar-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dark-border);
}

.sidebar-header h2 {
  font-size: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu-item {
  margin-bottom: 8px;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-menu-item a:hover {
  background: var(--dark-card-hover);
  color: var(--text-primary);
}

.sidebar-menu-item a.active {
  background: var(--primary-gradient);
  color: white;
}

.sidebar-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 24px 0 12px;
  padding-left: 16px;
}

/* Main Content */
.main-content {
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
  position: relative;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  font-size: 20px;
  margin-bottom: 16px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.form-label span {
  color: var(--danger);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group {
  position: relative;
}

.input-group-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Features Section */
.features-section {
  padding: 80px 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
  color: white;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 48px 32px 32px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}

.footer-section h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--dark-border);
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
    padding-top: 80px !important;
    padding-right: 12px !important;
    padding-bottom: 20px !important;
    padding-left: 12px !important;
  }
  
  .main-content > *:first-child {
    margin-top: 0;
  }
  
  .navbar {
    padding: 12px 16px;
    backdrop-filter: blur(20px);
  }
  
  .navbar-brand {
    font-size: 18px;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 16px;
  }
  
  .hero-subtitle {
    font-size: clamp(14px, 4vw, 18px);
    margin-bottom: 32px;
    padding: 0 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    padding: 0 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    min-height: 48px;
  }
  
  .features-section {
    padding: 60px 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
  
  .card {
    padding: 20px;
    border-radius: 12px;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
    touch-action: manipulation;
  }
  
  .form-input {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 48px;
    -webkit-appearance: none;
  }
  
  .form-label {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .footer {
    padding: 40px 20px 24px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .modal-content {
    width: 95%;
    max-width: 100%;
    padding: 24px 20px;
    margin: 20px;
  }
  
  .info-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
  }
  
  .info-card-image {
    margin-top: 0;
  }
  
  .info-card-image img {
    max-width: 150px;
  }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
  .main-content {
    padding-top: 75px !important;
    padding-right: 10px !important;
    padding-bottom: 16px !important;
    padding-left: 10px !important;
  }
  
  .main-content > *:first-child {
    margin-top: 0;
  }
  
  .navbar {
    padding: 10px 12px;
  }
  
  .navbar-brand {
    font-size: 16px;
  }
  
  .hero {
    padding: 80px 16px 50px;
  }
  
  .hero-title {
    font-size: clamp(24px, 10vw, 36px);
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.7;
  }
  
  .stats-grid {
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .features-section {
    padding: 40px 16px;
  }
  
  .feature-card {
    padding: 20px 16px;
  }
  
  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .feature-title {
    font-size: 18px;
  }
  
  .feature-desc {
    font-size: 14px;
  }
  
  .card {
    padding: 16px;
  }
  
  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .form-input {
    padding: 12px 14px;
    font-size: 16px;
  }
  
  .footer {
    padding: 32px 16px 20px;
  }
  
  .footer-bottom {
    padding-top: 24px;
    margin-top: 24px;
    font-size: 12px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .welcome-text {
    font-size: 14px;
  }
}

/* Hamburger Menu */
.hamburger {
  position: fixed;
  top: 16px;
  left: 16px;
  font-size: 22px;
  color: white;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 1000;
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.hamburger:active {
  transform: scale(0.95);
  background: var(--dark-card-hover);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1000;
  }
  
  /* Ensure content doesn't overlap hamburger */
  body {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .hamburger {
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    font-size: 20px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* Top Bar */
.topbar {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  font-size: 14px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-separator {
  color: var(--dark-border);
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
  .sidebar-overlay {
    display: none !important;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

