@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-space: #030712;
  --bg-panel: rgba(11, 15, 25, 0.7);
  --bg-panel-solid: #0d1222;
  --bg-sidebar: #090d18;
  --border-neon: rgba(0, 242, 254, 0.12);
  --border-glow: rgba(157, 78, 221, 0.12);
  
  --neon-cyan: #00f2fe;
  --neon-purple: #9d4edd;
  --neon-pink: #ff007f;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
  --accent-blue: #3b82f6;
  
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.15);
  --shadow-purple-glow: 0 0 20px rgba(157, 78, 221, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 20%, rgba(157, 78, 221, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(0, 242, 254, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Glassmorphism layouts */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-neon);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}
.glass-panel:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: var(--shadow-glow);
}

/* Navigation layout */
.navbar-public {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(9, 13, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-neon);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.logo-moon {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-cyan);
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Buttons styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #030712;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-neon);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--accent-rose);
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

/* Landing Page Section */
.hero-section {
  padding: 120px 8% 80px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan) 30%, var(--neon-purple) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 8%;
}

.feature-card {
  text-align: left;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-glow);
  background: rgba(157, 78, 221, 0.03);
}

.feature-icon {
  font-size: 2rem;
  color: var(--neon-cyan);
  margin-bottom: 15px;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 8%;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border: 2px solid var(--neon-cyan);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--neon-cyan);
  color: #030712;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
}

.pricing-header {
  margin-bottom: 25px;
}

.price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 15px 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 25px 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--neon-cyan);
  font-weight: 900;
}

/* Dashboard App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-neon);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 90;
  transition: var(--transition-smooth);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-neon);
}

.sidebar-menu {
  list-style: none;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(0, 242, 254, 0.08);
  color: var(--neon-cyan);
  border-left: 3px solid var(--neon-cyan);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-neon);
  background: rgba(0,0,0,0.2);
}

.app-content {
  margin-left: 260px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  background: rgba(13, 18, 34, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-neon);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 80;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-content {
  padding: 32px;
  flex-grow: 1;
}

/* Forms styling */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

/* Table grid styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-neon);
}

.table-moon {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-panel-solid);
}

.table-moon th {
  background: rgba(0, 242, 254, 0.04);
  padding: 14px 18px;
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-neon);
}

.table-moon td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.table-moon tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--accent-rose); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); border: 1px solid rgba(59, 130, 246, 0.2); }

/* Dashboard Widgets */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.widget-card {
  padding: 20px;
  border-radius: 12px;
}

.widget-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 10px 0 5px;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.widget-title {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Alert center style */
.alert-pill {
  padding: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.alert-pill.read {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

/* Custom layout helpers */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 10px; }
.w-full { width: 100%; }

/* Grid systems */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
}
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 12px;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 12px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .app-sidebar {
    width: 0;
    overflow: hidden;
    position: fixed;
  }
  .app-content {
    margin-left: 0;
  }
  .navbar-public {
    padding: 15px 4%;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
