:root {
  --bg-dark: #0a0e17;
  --bg-sidebar: #121826;
  --bg-card: #1a2235;
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
  --neon-blue: #00f0ff;
  --neon-purple: #bd00ff;
  --accent-blue: #0088ff;
  --danger: #ff3366;
  --success: #00ff88;
  --border-color: #2a344a;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--neon-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 8px rgba(189, 0, 255, 0.5);
}

/* Scrollbar Customization */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-purple); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; margin-bottom: 1rem; }
.text-gradient {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

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

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 { margin: 0; font-size: 1.5rem; letter-spacing: 1px; }

.sidebar-nav {
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: var(--text-muted);
  font-weight: 500;
  gap: 12px;
  transition: var(--transition);
}

.nav-item i { font-size: 1.2rem; width: 20px; text-align: center; }

.nav-item:hover, .nav-item.active {
  background: rgba(0, 240, 255, 0.05);
  color: var(--text-main);
  border-left: 4px solid var(--neon-blue);
}

.nav-item.active i {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 30px;
  transition: var(--transition);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background-color: var(--bg-sidebar);
  padding: 15px 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(189, 0, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 15px rgba(189, 0, 255, 0.1);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.stat-info h3 { margin: 0; font-size: 2rem; }
.stat-info p { margin: 0; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-blue), var(--neon-purple));
  color: white;
  box-shadow: 0 4px 15px rgba(189, 0, 255, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(189, 0, 255, 0.5);
}

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

.btn-danger:hover {
  background: #ff1a4d;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
}

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

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-family);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Login Page Specific */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, var(--bg-sidebar), var(--bg-dark));
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(transparent, transparent, transparent, var(--neon-blue));
  animation: rotate 4s linear infinite;
  opacity: 0.1;
  pointer-events: none;
}

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

.login-logo {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-error {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid var(--danger);
  color: #ff809f;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .sidebar.mobile-open { transform: translateX(0); }
}
