:root {
  --ins-primary: #1f4e5f;
  --ins-accent: #ff7b54;
  --ins-bg: #f4f6f8;
  --ins-sidebar: #163944;
  --ins-sidebar-hover: #1f4e5f;
}

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

.navbar-inspire {
  background: var(--ins-sidebar);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

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

.sidebar {
  width: 230px;
  background: var(--ins-sidebar);
  flex-shrink: 0;
  padding-top: 1rem;
}

.sidebar .nav-link {
  color: #cfe3e8;
  padding: .65rem 1.25rem;
  border-left: 3px solid transparent;
  font-size: .95rem;
}

.sidebar .nav-link:hover {
  background: var(--ins-sidebar-hover);
  color: #fff;
}

.sidebar .nav-link.active {
  background: var(--ins-sidebar-hover);
  color: #fff;
  border-left-color: var(--ins-accent);
  font-weight: 600;
}

.main-content {
  flex: 1;
  padding: 1.75rem;
  max-width: 100%;
  overflow-x: auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.page-header h3 {
  margin: 0;
  color: var(--ins-primary);
  font-weight: 700;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.stat-card {
  border-radius: 12px;
  color: #fff;
  padding: 1.25rem;
}

.stat-card h2 { margin: 0; font-weight: 700; }
.stat-card .label { opacity: .85; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

.bg-ins-1 { background: linear-gradient(135deg, #1f4e5f, #163944); }
.bg-ins-2 { background: linear-gradient(135deg, #ff7b54, #d8532f); }
.bg-ins-3 { background: linear-gradient(135deg, #2e8b57, #1f5f3a); }
.bg-ins-4 { background: linear-gradient(135deg, #6c5ce7, #4834a3); }

.btn-inspire {
  background: var(--ins-primary);
  color: #fff;
  border: none;
}
.btn-inspire:hover { background: #163944; color: #fff; }

.btn-accent {
  background: var(--ins-accent);
  color: #fff;
  border: none;
}
.btn-accent:hover { background: #d8532f; color: #fff; }

.table thead th {
  background: #eef2f4;
  color: var(--ins-primary);
  border-bottom: none;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.badge-status-active, .badge.bg-active { background:#2e8b57 !important; }
.badge-status-inactive { background:#95a5a6 !important; }
.badge-status-suspended { background:#c0392b !important; }

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #163944, #1f4e5f 60%, #ff7b54);
}

.login-card {
  width: 380px;
  border-radius: 14px;
}

.profile-tabs .nav-link.active {
  border-bottom: 3px solid var(--ins-accent);
  color: var(--ins-primary);
  font-weight: 600;
}

@media (max-width: 767px) {
  .sidebar {
    position: fixed;
    left: -230px;
    top: 56px;
    bottom: 0;
    z-index: 1050;
    transition: left .2s ease;
  }
  body.sidebar-open .sidebar { left: 0; }
  .main-content { padding: 1rem; }
}

@media print {
  .navbar-inspire, .sidebar, .no-print { display: none !important; }
  .main-content { padding: 0; }
}
