:root {
  --app-primary: #173b59;
  --app-primary-hover: #245477;
  --app-bg: #f3f6fa;
  --app-border: #e3eaf1;
}

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--app-bg);
  color: #253649;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(22, 49, 74, 0.06);
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: var(--app-primary);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  --bs-btn-bg: var(--app-primary);
  --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-bg: var(--app-primary-hover);
  --bs-btn-hover-border-color: var(--app-primary-hover);
}

.form-control {
  padding: 11px 14px;
  border-radius: 9px;
}

.form-control:focus {
  border-color: #6e9ab9;
  box-shadow: 0 0 0 0.2rem rgba(23, 59, 89, 0.1);
}

.app-navbar {
  background: #fff;
  border-bottom: 1px solid var(--app-border);
}

.stat-card {
  background: white;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 24px;
  height: 100%;
}

.text-muted-custom {
  color: #718096;
}

/* Dashboard layout */
.app-layout {
  min-height: 100vh;
  display: flex;
}

.app-sidebar {
  width: 260px;
  min-width: 260px;
  background: #173b59;
  color: #fff;
  padding: 26px 16px;
}

.sidebar-brand {
  padding: 0 12px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a9bfd0;
  padding: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd9e5;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 5px;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.sidebar-link.disabled {
  color: #91a9bb;
  cursor: default;
  opacity: 0.65;
}

.app-content {
  flex: 1;
  min-width: 0;
}

.app-topbar {
  background: #fff;
  border-bottom: 1px solid #e3eaf1;
  padding: 18px 30px;
}

.app-main {
  padding: 30px;
}

.metric-card {
  background: #fff;
  border: 1px solid #e3eaf1;
  border-radius: 14px;
  padding: 24px;
  height: 100%;
}

.metric-label {
  font-size: 13px;
  color: #718096;
  margin-bottom: 12px;
}

.metric-value {
  font-size: 30px;
  font-weight: 700;
  color: #173b59;
}

@media (max-width: 767.98px) {
  .app-layout {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }

  .sidebar-brand {
    padding-bottom: 14px;
    margin-bottom: 12px;
  }

  .app-topbar,
  .app-main {
    padding: 18px;
  }
}
