* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

:root {
  --primary: #7af7c1;
  --primary-strong: #00ffe0;
  --accent: #4be0ff;
  --bg-dark: #050b16;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 20%, #122033 10%, #0b1624 45%, var(--bg-dark) 100%);
  color: #e9f2ff;
}

a {
  color: inherit;
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.sidebar {
  padding: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: contain;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.8), transparent);
}

.brand-text h2 {
  margin: 0;
  color: var(--primary-strong);
}

.brand-text span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9cb3c9;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-small {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  flex-shrink: 0;
}

.logo-small:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 255, 224, 0.3);
}

.logo-small.main-logo {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-strong);
  box-shadow: 0 0 20px rgba(0, 255, 224, 0.4);
  background: rgba(0, 255, 224, 0.1);
}

.tagline {
  margin: 6px 0 20px;
  color: #a8bed7;
  font-size: 14px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
}

.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #e9f2ff;
  transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(122, 247, 193, 0.18);
  color: var(--primary-strong);
}

.division-list h4 {
  margin: 14px 0 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #e9f2ff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.chip.active {
  background: #00ffe0;
  color: #041020;
  border-color: #00ffe0;
}

.main {
  padding: 34px;
  overflow: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header h1 {
  margin: 4px 0;
}

.eyebrow {
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fb7ff;
  font-size: 12px;
  margin: 0;
}

.muted {
  color: #9cb3c9;
}

button {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #041020;
  font-weight: 700;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 255, 224, 0.35);
}

.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e9f2ff;
  box-shadow: none;
}

.ghost.danger {
  color: #ff9f9f;
  border: 1px solid rgba(255, 159, 159, 0.5);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  padding: 20px;
  border-radius: 16px;
}

.stat-label {
  color: #9cb3c9;
  font-size: 14px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  margin-top: 6px;
}

.controls {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
}

.search-box input,
.control-group select,
.modal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e9f2ff;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pill-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 999px;
}

.pill {
  border-radius: 999px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: #9cb3c9;
}

.pill.active {
  background: #00ffe0;
  color: #041020;
}

.carousel {
  margin: 18px 0 24px;
  padding: 16px;
  border-radius: 16px;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.carousel-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.carousel-photo {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.carousel-info h4 {
  margin: 0 0 4px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e9f2ff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.icon-btn.danger {
  color: #ffb3b3;
  border-color: rgba(255, 179, 179, 0.4);
}

.cards-section {
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.anggota-card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-hero {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  background: rgba(0, 255, 224, 0.2);
  color: #00ffe0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.leader-row {
  background: rgba(255, 215, 111, 0.08);
}

.leader-card {
  border: 1px solid rgba(255, 215, 111, 0.35);
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 199, 94, 0.15);
}

.leader-card .card-body {
  text-align: center;
}

.leader-card .card-top {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.leader-card .card-actions {
  justify-content: center;
}

.leader-tag {
  display: inline-block;
  background: linear-gradient(90deg, #ffd76f, #ff9b3f);
  color: #2f1b00;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  margin-top: 8px;
  font-size: 12px;
}

.leaders {
  margin: 14px 0 20px;
  padding: 16px;
  border-radius: 16px;
}

.leaders-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.leader-hero {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

.leader-body {
  margin-top: 10px;
  text-align: center;
}

.leader-role {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffd76f;
  text-transform: uppercase;
  font-size: 12px;
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, #122033 10%, #0b1624 45%, var(--bg-dark) 100%);
}

.auth-card {
  width: min(420px, 90vw);
  padding: 24px;
  border-radius: 18px;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.auth-card input,
.auth-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e9f2ff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 3px rgba(0, 255, 224, 0.1);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #9cb3c9;
  font-weight: 500;
}


.error-message {
  display: block;
  color: #ff9f9f;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.password-strength {
  margin-top: 8px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
  width: 33%;
  background: #ff6b6b;
}

.password-strength.medium .password-strength-bar {
  width: 66%;
  background: #ffd93d;
}

.password-strength.strong .password-strength-bar {
  width: 100%;
  background: #6bcf7f;
}

.auth-card button {
  width: 100%;
}

.auth-status {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 12px;
  color: #9cb3c9;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.table-section {
  padding: 12px;
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  text-align: left;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.actions {
  display: flex;
  gap: 6px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-content {
  padding: 20px;
  border-radius: 16px;
  width: min(420px, 100%);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.modal-footer {
  display: flex;
  gap: 10px;
}

.secondary {
  background: transparent;
  color: #e9f2ff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 960px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .controls {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}