:root {
  --club-blue: #0d47a1;
  --club-blue-light: #1565c0;
  --club-green: #198754;
  --bg-soft: #f4f7fb;
}

body {
  background: var(--bg-soft);
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
}

.topbar {
  background: linear-gradient(90deg, var(--club-blue) 0%, var(--club-blue-light) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.app-wrap {
  display: flex;
  min-height: calc(100vh - 56px);
}

.app-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e5e9f0;
}

.app-sidebar .nav-link {
  color: #405070;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  font-size: .93rem;
}

.app-sidebar .nav-link i { width: 20px; display: inline-block; }

.app-sidebar .nav-link:hover {
  background: #eef3fb;
  color: var(--club-blue);
}

.app-sidebar .nav-link.active {
  background: #eaf3ee;
  border-left-color: var(--club-green);
  color: var(--club-green);
  font-weight: 600;
}

.app-content {
  flex: 1;
  min-width: 0;
  padding: 20px;
}

.stat-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20,40,80,.06);
  padding: 18px;
  background: #fff;
}

.stat-card .stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; color: #1a2b4a; }
.stat-card .stat-label { color: #7c8aa3; font-size: .82rem; }

.card { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(20,40,80,.06); }
.card-header { background: #fff; border-bottom: 1px solid #eef1f6; border-radius: 14px 14px 0 0 !important; font-weight: 600; }

.table thead { background: #f0f4fa; }
.table thead th { border-bottom: none; font-size: .78rem; text-transform: uppercase; color: #5b6b8c; letter-spacing: .03em; }

.member-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--club-blue) 0%, var(--club-green) 100%);
}
.login-card { max-width: 380px; width: 100%; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }

.membership-card {
  width: 340px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--club-blue) 0%, var(--club-blue-light) 60%, var(--club-green) 100%);
  color: #fff;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.membership-card .card-photo { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; border: 2px solid #fff; }

@media (max-width: 991px) {
  .app-sidebar { position: fixed; left: -230px; top: 56px; bottom: 0; z-index: 1030; transition: left .2s; }
  .app-sidebar.show { left: 0; }
  .app-content { padding: 14px; }
}

@media print {
  .topbar, .app-sidebar, .no-print { display: none !important; }
  .app-content { padding: 0; }
}
