* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.4) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.4);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.6);
  background-clip: content-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f7fb;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

h1 {
  margin-top: 0;
  color: #1d4e89;
}

a {
  color: #1abc9c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Prevent underline on links/buttons with icons or + symbols */
a:has(span:only-child),
.button,
button,
a[class*="button"],
button[class*="button"] {
  text-decoration: none !important;
}

a:hover:has(span:only-child),
.button:hover,
button:hover,
a[class*="button"]:hover,
button[class*="button"]:hover {
  text-decoration: none !important;
}

.button {
  display: inline-block;
  background: #1abc9c;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}


.hero {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.1;
  color: #1d4e89;
}

.lead {
  color: #444;
  font-size: 18px;
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.card h3 {
  margin: 0 0 8px;
  color: #1d4e89;
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}


/* Layout */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

/* Navbar */
.nav {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  color: #1d4e89;
  text-decoration: none;
}

.nav-links, .nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a, .nav-actions .nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover, .nav-actions .nav-link:hover {
  background: rgba(29,78,137,0.08);
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 22px 18px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 800;
  color: #1d4e89;
}

.footer-sub {
  color: #555;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1100px;
  margin: 14px auto 0;
  color: #777;
  font-size: 14px;
}

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 30px 0 60px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.auth-card h1 {
  margin: 0 0 8px;
  color: #1d4e89;
}

.auth-sub {
  margin: 0 0 16px;
  color: #555;
}

.auth-form p {
  margin: 0 0 12px;
}

.auth-form label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
  box-sizing: border-box; /* ← ADD THIS */
}


.auth-form input:focus {
  border-color: rgba(26,188,156,0.9);
  box-shadow: 0 0 0 4px rgba(26,188,156,0.18);
}

.alert {
  background: rgba(241, 196, 15, 0.18);
  border: 1px solid rgba(241, 196, 15, 0.45);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.auth-alt {
  margin-top: 14px;
  color: #444;
}

.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
  box-sizing: border-box; /* ← ADD THIS */
}

.auth-form p {
  margin-bottom: 14px;
}

.button {
  display: inline-block;
  background: #1abc9c;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  transition: all 0.2s ease;
}

.button-secondary:hover {
  background: rgba(255,255,255,0.16);
}

.button-danger {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  background: rgba(255,107,107,0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255,107,107,0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}

.button-danger:hover {
  background: rgba(255,107,107,0.25);
}


.button:hover,
.button:focus {
  background: #17a589;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(26, 188, 156, 0.35);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(26, 188, 156, 0.25);
}

.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease; /* smooth animation */
}

.auth-form input:hover {
  border-color: rgba(26, 188, 156, 0.6);
}

.auth-form input:focus {
  border-color: #1abc9c;
  box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.18);
  background: #ffffff;
}

.auth-form label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.auth-form input:focus + label {
  color: #1abc9c;
}

.nav-link {
  cursor: pointer;
}

.logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.logout-btn {
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  color: #333;
  font-weight: 600;
}

.logout-btn:hover {
  background: rgba(29,78,137,0.08);
}

/* ===== App Shell (Logged-in OS feel) ===== */
.app-body {
  background: #0c1929;
  overflow: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #0c1929;
}

.app-shell[data-nav-layout="topbar"] {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  padding-left: 0;
}

.app-topbar-nav {
  background: #111f35;
  border-bottom: 1px solid rgba(56,160,255,0.13);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  grid-column: 1 / -1;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 20px;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: rgba(102, 126, 234, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
}

.topbar-top {
  display: none;
}

.topbar-bottom {
  display: none;
}

.app-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-brand a {
  color: #1abc9c;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  transition: all 0.2s ease;
  cursor: help;
}

.app-brand a:hover {
  color: #667eea;
  opacity: 0.8;
}

.app-brand-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 600;
}

.app-nav-horizontal {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.app-nav-horizontal::-webkit-scrollbar {
  height: 4px;
}

.app-nav-horizontal::-webkit-scrollbar-track {
  background: transparent;
}

.app-nav-horizontal::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 2px;
}

.app-nav-horizontal::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.nav-item:hover {
  background-color: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-color: rgba(102, 126, 234, 0.2);
}

.nav-item.active {
  background-color: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border-color: #667eea;
}

.nav-icon {
  font-size: 16px;
}

.nav-text {
  display: inline;
}

body[data-show-icons="false"] .nav-icon {
  display: none !important;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-user .dot {
  width: 8px;
  height: 8px;
  background-color: #667eea;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-user-actions {
  display: flex;
  gap: 8px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-user-name {
  font-weight: 800;
  color: #fff;
  font-size: 12px;
}

.app-user-sub {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

@media (max-width: 1200px) {
  .nav-text {
    display: none !important;
  }

  .nav-item {
    padding: 6px 8px;
    gap: 0;
  }

  .topbar-content {
    gap: 12px;
  }

  .topbar-left {
    gap: 8px;
    padding: 8px 10px;
  }

  .topbar-center {
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .app-topbar-nav {
    flex-direction: column;
  }

  .topbar-top {
    padding: 10px 16px;
    flex-direction: row;
    gap: 12px;
  }

  .topbar-bottom {
    padding: 8px 16px;
    overflow-x: auto;
  }

  .app-brand {
    flex-shrink: 0;
  }

  .app-brand a {
    font-size: 14px;
  }

  .app-brand-sub {
    display: none;
  }

  .topbar-right {
    gap: 8px;
    margin-left: auto;
  }

  .user-info {
    display: none;
  }

  .app-user-actions {
    gap: 6px;
  }

  .nav-item {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .nav-icon {
    font-size: 14px;
  }
}

.app-sidebar {
  background: #101e33;
  color: #e8f0fd;
  border-right: 1px solid rgba(56,160,255,0.13);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  flex-shrink: 0;
  width: 220px;
  z-index: 50;
  scrollbar-width: none;
  transition: width 0.2s ease;
}

.app-sidebar::-webkit-scrollbar {
  display: none;
}

.app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(56,160,255,0.25);
  border-radius: 4px;
}

.app-shell-sidebar-wrapper {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-sidebar.collapsed {
  width: 64px;
}

/* ── New sidebar brand block ── */
.sidebar-brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(56,160,255,0.13);
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e5cd4 0%, #0e3a9e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(56,160,255,0.25);
}

.sidebar-brand-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-brand-name {
  font-size: 14px;
  font-weight: 800;
  color: #e8f0fd;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}

.sidebar-brand-sub {
  font-size: 10px;
  color: rgba(232,240,253,0.55);
  white-space: nowrap;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: rgba(232,240,253,0.55);
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-toggle-btn:hover {
  color: #e8f0fd;
  background: rgba(56,160,255,0.10);
}

/* ── User chip ── */
.sidebar-user-chip {
  margin: 10px 10px 4px;
  padding: 10px 12px;
  background: rgba(56,160,255,0.06);
  border: 1px solid rgba(56,160,255,0.13);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.sidebar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-chip-info {
  min-width: 0;
  overflow: hidden;
}

.sidebar-chip-name {
  font-size: 12px;
  font-weight: 700;
  color: #e8f0fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-chip-role {
  font-size: 10px;
  color: rgba(232,240,253,0.55);
  white-space: nowrap;
}

/* ── Nav section labels ── */
.nav-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(232,240,253,0.30);
  padding: 10px 10px 3px;
  white-space: nowrap;
}

/* Collapsed state — hide text */
.app-sidebar.collapsed .sidebar-brand-info,
.app-sidebar.collapsed .sidebar-chip-info,
.app-sidebar.collapsed .nav-text,
.app-sidebar.collapsed .nav-section-label,
.app-sidebar.collapsed .app-sidebar-bottom .logout-form {
  display: none;
}

.app-sidebar.collapsed .sidebar-brand-block {
  justify-content: center;
  padding: 14px 8px;
}

.app-sidebar.collapsed .sidebar-user-chip {
  justify-content: center;
  padding: 8px;
  margin: 8px 6px 4px;
}

.app-sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 10px;
}

.app-sidebar.collapsed .app-sidebar-bottom {
  align-items: center;
}

.app-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 10px;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

.app-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(232,240,253,0.55);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  margin-bottom: 1px;
}

.nav-item:hover {
  background: rgba(56,160,255,0.10);
  color: #e8f0fd;
}

.nav-item.active {
  background: rgba(56,160,255,0.15);
  color: #38a0ff;
  border-color: rgba(56,160,255,0.30);
}

.nav-icon {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-text {
  white-space: nowrap;
}

.app-sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.app-sidebar.collapsed .nav-item:hover::after,
.app-sidebar.collapsed .nav-item::after {
  content: attr(title);
  position: absolute;
  left: 70px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-brand a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
}

.app-brand-sub {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-top: 4px;
}

.app-sidebar-bottom {
  margin-top: auto;
  padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(56,160,255,0.13);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #101e33;
  z-index: 10;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #1abc9c;
}

.app-user-name {
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-size: 15px;
}

.app-user-sub {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

.app-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(56,160,255,0.08);
  border: 1px solid rgba(56,160,255,0.15);
  color: rgba(232,240,253,0.70);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 12px;
  white-space: nowrap;
  width: 100%;
}

.app-logout:hover,
.app-logout.active {
  background-color: rgba(56,160,255,0.15);
  color: #38a0ff;
  border-color: rgba(56,160,255,0.35);
}

.app-logout.logout-danger {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.2);
  color: rgba(255, 180, 180, 0.9);
}

.app-logout.logout-danger:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff9999;
  border-color: rgba(255, 107, 107, 0.4);
}

.app-main {
  background: #0f1e32;
  color: #e8f0fd;
  transition: width 0.2s ease;
}

/* ── Main wrapper ── */
.app-main-wrapper {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Inner topbar ── */
.app-inner-topbar {
  height: 52px;
  background: #111f35;
  border-bottom: 1px solid rgba(56,160,255,0.13);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-inner-topbar .sidebar-toggle-btn {
  font-size: 17px;
  flex-shrink: 0;
}

.app-inner-topbar-title {
  font-size: 16px;
  font-weight: 800;
  color: #e8f0fd;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.app-inner-topbar-spacer {
  flex: 1;
}

.app-inner-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-topbar-btn {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(56,160,255,0.13);
  background: rgba(56,160,255,0.07);
  color: rgba(232,240,253,0.55);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.app-topbar-btn:hover,
.app-topbar-btn.active {
  color: #e8f0fd;
  border-color: rgba(56,160,255,0.30);
  background: rgba(56,160,255,0.15);
}

.app-topbar-btn.danger {
  background: rgba(248,113,113,0.08);
  border-color: rgba(248,113,113,0.20);
  color: rgba(248,113,113,0.70);
}

.app-topbar-btn.danger:hover {
  background: rgba(248,113,113,0.15);
  color: #f87171;
  border-color: rgba(248,113,113,0.40);
}

.app-topbar-btn.accent {
  background: linear-gradient(135deg, #1e63d5 0%, #1549b0 100%);
  border-color: #2563eb;
  color: #fff;
}

.app-topbar-btn.accent:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
}

.app-inner-topbar-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-topbar-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(232,240,253,0.55);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.app-topbar-tab:hover {
  color: #e8f0fd;
  background: rgba(56,160,255,0.10);
}

.app-topbar-tab.active {
  color: #38a0ff;
  background: rgba(56,160,255,0.15);
  border-color: rgba(56,160,255,0.30);
}

.app-inner-topbar-quick {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-inner-topbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(56,160,255,0.13);
  flex-shrink: 0;
  margin: 0 2px;
}

.app-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.app-shell[data-nav-layout="topbar"] .app-main {
  grid-column: 1;
  grid-row: 2;
  margin-left: 0;
}

.app-shell[data-nav-layout="topbar"] .app-sidebar {
  display: none;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
}

.app-topbar-title {
  font-size: 18px;
  font-weight: 850;
  color: #fff;
}

.app-content {
  padding: 18px;
  flex: 1;
  width: 100%;
}

/* App panels */
.app-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 220px 1fr; }
  .app-grid { grid-template-columns: 1fr; }
}

.app-sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin-bottom: 8px;
}

.app-sidebar-link:hover {
  background: rgba(255,255,255,0.08);
}

.app-sidebar-link.active {
  background: rgba(26,188,156,0.25);
  color: #1abc9c;
}

.app-logout.logout-danger {
  color: #ff6b6b;
}

.app-logout.logout-danger:hover {
  background: rgba(255, 107, 107, 0.12);
}

a.button-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
}
a.button-secondary:hover {
  background: rgba(255,255,255,0.16);
}

.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.grid-3 { display:grid; grid-template-columns: 1fr 120px 140px; gap:12px; }
.stack { display:flex; flex-direction:column; gap:14px; }

.panel-title { margin:0 0 10px 0; font-size:14px; opacity:.9; }

.form-row { display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.form-row.inline { flex-direction:row; align-items:center; justify-content:space-between; }
.form-row label { font-size:13px; opacity:.8; font-weight:700; }

.help { font-size:12px; opacity:.7; margin-top:4px; }

.toggle { display:flex; align-items:center; gap:8px; }
.toggle input[type="checkbox"] { transform: scale(1.2); }

/* Google Places Autocomplete dropdown (dark theme) */
.pac-container {
  background: #0f3460 !important;
  border: 1px solid #34495e !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35) !important;
  padding: 6px 0 !important;
  font-family: inherit !important;
  z-index: 9999 !important;
}

.pac-item {
  color: #ecf0f1 !important;
  padding: 10px 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  cursor: pointer !important;
  font-size: 13px !important;
}

.pac-item:first-child {
  border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
  background: rgba(26, 188, 156, 0.18) !important;
}

.pac-item .pac-item-query {
  color: #1abc9c !important;
  font-weight: 700 !important;
}

.pac-icon {
  filter: brightness(0) invert(1) !important;
  opacity: 0.7 !important;
}


