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

:root {
  --bg-deep:       #050818;
  --bg-mid:        #0D1B3E;
  --glass:         rgba(255,255,255,0.05);
  --glass-border:  rgba(255,255,255,0.12);
  --neon-blue:     #00C8FF;
  --neon-purple:   #9B5FFF;
  --neon-teal:     #00FFD4;
  --neon-coral:    #FF6B6B;
  --text-primary:  #E8F4FF;
  --text-muted:    rgba(232,244,255,0.55);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
small { font-size: 12px; }

/* Background Canvas */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.card {
  background: rgba(13,27,62, 0.4);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.3);
  animation: float 4s ease-in-out infinite;
  animation-fill-mode: both;
}
.card:nth-child(2n) { animation-delay: 1s; }
.card:nth-child(3n) { animation-delay: 2s; }

/* Gradient Border Card */
.gradient-border-card {
  position: relative;
  background: var(--bg-mid);
  border-radius: 16px;
  padding: 24px;
  z-index: 1;
}
.gradient-border-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, var(--neon-blue), var(--neon-purple), var(--neon-teal), var(--neon-blue));
  z-index: -1;
  animation: rotateGradient 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gradient-border-card:hover::before {
  opacity: 1;
}

/* Typography Enhancements */
.text-gradient {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted); }
.glow-text-blue { text-shadow: 0 0 10px var(--neon-blue); }
.glow-text-coral { text-shadow: 0 0 10px var(--neon-coral); }

/* Layout: Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: rgba(13,27,62,0.7);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}
.sidebar .logo {
  padding: 24px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 15px var(--neon-blue);
  border-bottom: 1px solid var(--glass-border);
}
.sidebar-nav {
  list-style: none;
  padding: 16px 0;
  flex-grow: 1;
  overflow-y: auto;
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}
.sidebar-nav li a i {
  margin-right: 12px;
  font-size: 18px;
  transition: all 0.3s ease;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  color: #fff;
  background: rgba(0, 200, 255, 0.05);
  border-right: 3px solid var(--neon-blue);
}
.sidebar-nav li a:hover i, .sidebar-nav li a.active i {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

/* Layout: Main Content */
.main-wrapper {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}
.topbar {
  height: 70px;
  background: rgba(5,8,24,0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}
.content-area {
  padding: 32px;
  flex-grow: 1;
  animation: fadeIn 0.6s ease forwards;
}

/* UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
}
.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px var(--neon-blue);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
}
.btn-outline:hover {
  background: rgba(0,200,255,0.1);
  box-shadow: 0 0 15px rgba(0,200,255,0.4);
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 4px 15px rgba(0,200,255,0.15);
  border-bottom: 2px solid var(--neon-blue);
}

/* Data Tables */
.table-responsive { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-primary);
}
.data-table th {
  text-align: left;
  padding: 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: var(--neon-blue);
  border-bottom: 1px solid rgba(0,200,255,0.3);
  background: rgba(0,200,255,0.05);
}
.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}
.data-table tbody tr:nth-child(odd) {
  background: transparent;
}
.data-table tbody tr:nth-child(even) {
  background: rgba(0,200,255,0.02);
}
.data-table tbody tr:hover {
  background: rgba(0,200,255,0.08);
  border-left: 3px solid var(--neon-blue);
}

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-active, .badge-approved { background: rgba(0,255,212,0.1); color: var(--neon-teal); border: 1px solid var(--neon-teal); box-shadow: 0 0 10px rgba(0,255,212,0.2); }
.badge-pending { background: rgba(155,95,255,0.1); color: var(--neon-purple); border: 1px solid var(--neon-purple); box-shadow: 0 0 10px rgba(155,95,255,0.2); }
.badge-rejected { background: rgba(255,107,107,0.1); color: var(--neon-coral); border: 1px solid var(--neon-coral); box-shadow: 0 0 10px rgba(255,107,107,0.2); }

/* Progress Bars */
.progress-wrapper {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  box-shadow: 0 0 10px var(--neon-blue);
  width: 0%;
  transition: width 1.2s ease;
}

/* Grid Layouts */
.grid { display: grid; gap: 24px; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.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; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

/* Notification Dot */
.notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: var(--neon-coral);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
}
