:root {
  --brand-navy: #072743;
  --brand-cyan: #0fa3b1;
  --brand-gold: #e8b923;
  --brand-sky: #8ecae6;
  --surface: rgba(255, 255, 255, 0.12);
  --surface-strong: rgba(255, 255, 255, 0.22);
  --text-strong: #f6fbff;
  --text-muted: #d3e5f2;
  --page-bg: #f5f7fb;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

.app-body {
  background: linear-gradient(145deg, #e7eff5, #f6f9fc 30%, #ecf4fb);
  color: #1c2f3d;
  min-height: 100vh;
}

.app-navbar {
  background: linear-gradient(90deg, #0a2d4d, #0f4c6d 46%, #19698f);
  box-shadow: 0 10px 30px rgba(7, 39, 67, 0.2);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0.5rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.app-brand:hover,
.app-brand:focus,
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
  color: #fff;
}

.app-navbar .nav-link {
  color: #d7ecf7;
  font-weight: 600;
}

.app-dropdown {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(7, 39, 67, 0.2);
  padding: 0.5rem;
}

.app-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.app-dropdown .dropdown-item:hover {
  background: #e7f5ff;
}

.user-chip {
  color: #fff;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-header {
  background: linear-gradient(120deg, #07375f, #0b7f8c);
  color: #f3fcff;
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 14px 34px rgba(10, 64, 105, 0.2);
}

.dashboard-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.dashboard-subtitle {
  color: #cbeaf4;
}

.status-card,
.panel {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid #deebf5;
  box-shadow: 0 8px 24px rgba(14, 70, 111, 0.08);
}

.master-form .form-control {
  border-radius: 10px;
  border: 1px solid #cfe0ef;
}

.search-form .form-control,
.search-form .btn,
.master-form .btn,
.pagination .page-link {
  border-radius: 10px;
}

.master-summary {
  color: #59758d;
  font-size: 0.92rem;
}

.master-pagination .page-link {
  color: #0a4d75;
  border-color: #d8e8f4;
  margin-right: 0.35rem;
}

.master-pagination .page-item.active .page-link {
  color: #ffffff;
  background: #0f4c6d;
  border-color: #0f4c6d;
}

.master-pagination .page-item.active .page-link:hover,
.master-pagination .page-item.active .page-link:focus {
  color: #ffffff;
}

.master-table thead th {
  background: #f2f8fd;
  color: #294960;
  border-bottom: 0;
}

.master-table td,
.master-table th {
  vertical-align: middle;
}

.status-card h2 {
  font-size: 0.95rem;
  color: #2d4b64;
}

.status-card p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #07375f;
}

.login-page {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 185, 35, 0.35), transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(15, 163, 177, 0.4), transparent 40%),
    radial-gradient(circle at 72% 75%, rgba(142, 202, 230, 0.35), transparent 45%),
    linear-gradient(135deg, #021b31, #03375f 40%, #0b6f8d 80%, #0f8ea0);
}

.login-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.45;
  animation: floatOrb 9s ease-in-out infinite;
}

.login-bg-orb-1 {
  width: 260px;
  height: 260px;
  background: #ffd166;
  top: -70px;
  right: 10%;
}

.login-bg-orb-2 {
  width: 360px;
  height: 360px;
  background: #06d6a0;
  bottom: -110px;
  left: -80px;
  animation-delay: 1s;
}

.login-bg-orb-3 {
  width: 220px;
  height: 220px;
  background: #4cc9f0;
  bottom: 20%;
  right: -70px;
  animation-delay: 2s;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.login-card {
  width: min(92vw, 420px);
  min-height: 520px;
  padding: 2rem 1.6rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(1, 20, 34, 0.45);
}

.login-brand {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.login-title {
  margin-top: 0.3rem;
  margin-bottom: 1.4rem;
  font-size: 1.9rem;
  color: #fff;
}

.login-form .form-label {
  color: #eef8ff;
  font-weight: 600;
}

.login-input {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  height: 44px;
}

.login-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: #9dd8ff;
  box-shadow: 0 0 0 0.2rem rgba(157, 216, 255, 0.25);
  color: #fff;
}

.login-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-gold), #ffd166);
  color: #17324a;
  font-weight: 700;
  letter-spacing: 0.03em;
  height: 46px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232, 185, 35, 0.35);
}

.login-logo {
  display: block;
  width: min(180px, 58%);
  max-height: 88px;
  height: auto;
  margin: 1.2rem auto 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-16px) scale(1.03);
  }
}

@media (max-width: 768px) {
  .login-card {
    min-height: 500px;
    padding: 1.6rem 1.2rem;
  }

  .dashboard-title {
    font-size: 1.1rem;
  }
}