:root {
  --y2-navy: #0b1b33;
  --y2-navy-dark: #071427;
  --y2-accent: #17c993;
  --y2-accent-dark: #0fa878;
  --y2-danger: #ef4a5f;
  --y2-border: #e6e9ef;
  --y2-bg: #f4f6fa;
}

body {
  background: var(--y2-bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1b2537;
}

/* ---------- Layout ---------- */
.y2-wrapper {
  display: flex;
  min-height: 100vh;
}

.y2-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--y2-navy) 0%, var(--y2-navy-dark) 100%);
  color: #cfd8e8;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.y2-sidebar .brand {
  padding: 22px 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.y2-sidebar .brand .dot { color: var(--y2-accent); }

.y2-sidebar nav {
  padding: 14px 0;
}

.y2-sidebar a.nav-link {
  color: #b7c2d6;
  padding: 11px 20px;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid transparent;
  transition: all .15s ease;
}
.y2-sidebar a.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.y2-sidebar a.nav-link.active {
  color: #fff;
  background: rgba(23, 201, 147, 0.12);
  border-left-color: var(--y2-accent);
  font-weight: 600;
}
.y2-sidebar .nav-section-title {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: .08em;
  color: #6d7b96;
  padding: 16px 20px 6px;
}

.y2-main {
  flex: 1;
  min-width: 0;
}

.y2-topbar {
  background: #fff;
  border-bottom: 1px solid var(--y2-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.y2-content {
  padding: 24px;
}

/* ---------- Cards ---------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--y2-border);
  border-radius: 12px;
  padding: 18px 20px;
  height: 100%;
}
.stat-card .stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #7a869e;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 4px;
  color: #101828;
}
.stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.card {
  border: 1px solid var(--y2-border);
  border-radius: 12px;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--y2-border);
  font-weight: 600;
}

.table thead th {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #7a869e;
  border-bottom-width: 1px;
  white-space: nowrap;
}
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: #f7faff; }

.btn-y2 {
  background: var(--y2-accent);
  border-color: var(--y2-accent);
  color: #06281e;
  font-weight: 600;
}
.btn-y2:hover {
  background: var(--y2-accent-dark);
  border-color: var(--y2-accent-dark);
  color: #fff;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2fb;
  color: #445; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #123054, var(--y2-navy-dark) 60%);
}
.login-card {
  width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.badge { font-weight: 600; font-size: .72rem; }

.filter-bar {
  background: #fff;
  border: 1px solid var(--y2-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .y2-sidebar { position: fixed; left: -240px; z-index: 1050; transition: left .2s ease; }
  .y2-sidebar.open { left: 0; }
  .y2-content { padding: 14px; }
}
