:root {
  --forest-900: #0b3d2e;
  --forest-800: #0f4a38;
  --forest-700: #13664b;
  --forest-600: #1f8a5b;
  --forest-500: #2aa06c;
  --mint-200: #bfe9d5;
  --cream-50: #f8f7f2;
  --sand-100: #efe9dd;
  --amber-400: #e0a133;
  --slate-800: #263238;
  --slate-600: #546e7a;
  --shadow-soft: 0 20px 60px rgba(11, 61, 46, 0.18);
  --shadow-card: 0 12px 30px rgba(15, 74, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background-color: var(--cream-50);
  color: var(--slate-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: "Bitter", "Georgia", serif;
}

.hero-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at top left, rgba(42, 160, 108, 0.25), transparent 50%),
    radial-gradient(circle at bottom right, rgba(224, 161, 51, 0.2), transparent 45%),
    linear-gradient(135deg, #0b3d2e, #1f8a5b 55%, #2aa06c);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.25;
}

.hero-orb.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(191, 233, 213, 0.35);
  top: 80px;
  left: 60px;
}

.hero-orb.orb-2 {
  width: 420px;
  height: 420px;
  background: rgba(224, 161, 51, 0.35);
  bottom: 40px;
  right: 60px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-image {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.btn-brand {
  background: var(--amber-400);
  border: none;
  color: #1b1303;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(224, 161, 51, 0.35);
}

.btn-brand:hover {
  background: #f0b346;
  color: #1b1303;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
}

.form-control, .form-select {
  border-radius: 14px;
  border: 1px solid rgba(15, 74, 56, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(31, 138, 91, 0.2);
  border-color: var(--forest-600);
}

.login-card {
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.badge-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: #0b3d2e;
  color: #fff;
  position: sticky;
  top: 0;
  flex-shrink: 0;
}

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

.sidebar.collapsed {
  width: 84px;
}

.sidebar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.sidebar .sidebar-label {
  transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  display: inline-block;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar .nav-link {
  border-radius: 14px;
  padding: 10px 14px;
}

.sidebar-toggle {
  position: absolute;
  right: -12px;
  top: 90px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1f8a5b;
  border: none;
  color: #fff;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid rgba(15, 74, 56, 0.1);
}

.dashboard-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 74, 56, 0.08);
}

.kpi-card {
  background: linear-gradient(135deg, #ffffff, #f3f7f4);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(15, 74, 56, 0.08);
  box-shadow: 0 8px 18px rgba(15, 74, 56, 0.12);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(31, 138, 91, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-600);
}

.table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-600);
}

.progress-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--forest-600) var(--progress), #e6ece9 0);
  display: grid;
  place-items: center;
}

.progress-ring span {
  font-weight: 700;
  font-size: 0.85rem;
}

.task-item.done {
  background: rgba(31, 138, 91, 0.1);
  border-color: rgba(31, 138, 91, 0.3);
}

.task-item.done .task-label {
  text-decoration: line-through;
  color: var(--slate-600);
}

.footer-lite {
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #0b3d2e, #1f8a5b);
  margin-top: auto;
}

.notfound-wrap {
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(224, 161, 51, 0.28), transparent 50%),
    radial-gradient(circle at bottom left, rgba(42, 160, 108, 0.28), transparent 50%),
    linear-gradient(135deg, #0b3d2e, #1f8a5b);
  color: #fff;
}

.text-gradient {
  background: linear-gradient(90deg, #f0b346, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 992px) {
  .app-container {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar-toggle {
    display: none;
  }

  .main-content {
    width: 100%;
    padding-top: 0;
  }
}
