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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a; color: #fff; min-height: 100vh;
}

/* Nav */
.app-nav {
  display: flex; align-items: center; gap: 24px;
  padding: 0 32px; height: 56px;
  background: rgba(17,17,17,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 100;
}
.nav-brand {
  font-size: 18px; font-weight: 700; margin-right: 16px;
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-menu { display: flex; gap: 4px; flex: 1; }
.nav-item {
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: all 0.2s;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-item.active { color: #fff; background: rgba(37,244,238,0.12); }
.nav-user { display: flex; align-items: center; gap: 12px; }
.user-badge {
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
  background: linear-gradient(135deg, #25f4ee, #fe2c55); color: #fff;
  text-transform: uppercase;
}
.user-name { font-size: 13px; color: rgba(255,255,255,0.6); }
.btn-logout {
  padding: 6px 14px; border-radius: 6px; font-size: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.2s;
}
.btn-logout:hover { background: rgba(254,44,85,0.2); color: #fe2c55; border-color: #fe2c55; }

/* Page container */
.page { padding: 32px; max-width: 1200px; margin: 0 auto; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.page-header p { font-size: 14px; color: rgba(255,255,255,0.4); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  padding: 24px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s;
}
.card:hover { border-color: rgba(37,244,238,0.2); }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.card .stat {
  font-size: 32px; font-weight: 700; margin-bottom: 4px;
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Table */
.table-wrap {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; overflow: hidden; margin-top: 24px;
}
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
td {
  padding: 12px 16px; font-size: 13px; color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* Buttons */
.btn {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-primary {
  background: linear-gradient(135deg, #25f4ee, #fe2c55); color: #fff;
}
.btn-primary:hover { opacity: 0.85; }
.btn-danger { background: rgba(254,44,85,0.15); color: #fe2c55; }
.btn-danger:hover { background: rgba(254,44,85,0.25); }

/* Forms */
.form-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: end; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; color: rgba(255,255,255,0.4); }
.form-group input, .form-group select {
  padding: 8px 14px; border-radius: 8px; font-size: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: #25f4ee; }
.form-group select option { background: #111; }

/* Alert */
.alert {
  padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px;
}
.alert-error { background: rgba(254,44,85,0.1); color: #fe2c55; border: 1px solid rgba(254,44,85,0.2); }
.alert-success { background: rgba(37,244,238,0.1); color: #25f4ee; border: 1px solid rgba(37,244,238,0.2); }
.alert-warn { background: rgba(255,180,0,0.1); color: #ffb400; border: 1px solid rgba(255,180,0,0.2); }

@media (max-width: 768px) {
  .app-nav { padding: 0 16px; gap: 12px; }
  .nav-item { padding: 6px 10px; font-size: 12px; }
  .page { padding: 20px 16px; }
  .form-row { flex-direction: column; }
}
