/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: 250px;
  height: 100vh;
  background: #1a2e1a;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  transition: transform .25s ease;
}

.sidebar-brand {
  padding: 1.25rem 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}

.sidebar-brand-name {
  font-size: 1rem;
  letter-spacing: .5px;
}

.sidebar-brand i {
  color: #4caf50;
  font-size: 1.5rem;
}

.sidebar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.sidebar-nav {
  flex: 1;
  padding: .75rem 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Thin scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.35);
}
/* Firefox */
.sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .925rem;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(76,175,80,.15);
  color: #4caf50;
  border-left-color: #4caf50;
  font-weight: 600;
}

.sidebar-link i {
  font-size: 1.15rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-size: .875rem;
}

.sidebar-user i {
  font-size: 1.5rem;
  opacity: .7;
}

/* ── Main content ────────────────────────────────────────── */
.main-content {
  margin-left: 250px;
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* ── Top bar (mobile) ────────────────────────────────────── */
.topbar {
  padding: .75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}

/* ── Existing styles ─────────────────────────────────────── */
.card-footer {
  background-color: rgba(0,0,0,.1);
}

.table a {
  text-decoration: none;
}

/* ── Weather widget ──────────────────────────────────────── */
.weather-widget {
  background: linear-gradient(135deg, #1a73e8 0%, #4fc3f7 100%);
  color: #fff;
  border-radius: .5rem;
  padding: 1.25rem;
}

.weather-widget .weather-icon {
  font-size: 2.5rem;
}

.weather-widget .weather-temp {
  font-size: 2rem;
  font-weight: 700;
}

.weather-widget .weather-detail {
  font-size: .85rem;
  opacity: .9;
}

.weather-widget .weather-forecast-day {
  text-align: center;
  padding: .5rem .25rem;
  border-radius: .375rem;
  background: rgba(255,255,255,.12);
}

.weather-widget .weather-forecast-day .temp {
  font-weight: 600;
}
