/* ==========================================================================
   GLOBAIA ADMIN
   Login screen styles
   ========================================================================== */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(46, 156, 75, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(242, 184, 7, 0.18), transparent 30rem),
    linear-gradient(135deg, #f7fbf5 0%, #eef6ec 48%, #ffffff 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--globaia-white);
  border: 1px solid var(--globaia-line);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 70px rgba(26, 29, 26, 0.14);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--globaia-green),
    var(--globaia-yellow),
    var(--globaia-green-dark)
  );
}

.auth-card img {
  max-width: 180px;
  object-fit: contain;
}

.auth-card .text-muted {
  color: var(--globaia-slate) !important;
}

.auth-card .form-label {
  color: var(--globaia-ink);
  margin-bottom: 0.45rem;
}

.auth-card .form-control {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--globaia-line);
  color: var(--globaia-ink);
  font-size: 0.95rem;
  padding: 0.75rem 0.95rem;
  background-color: #fbfdfb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-card .form-control::placeholder {
  color: #9aa59f;
}

.auth-card .form-control:focus {
  border-color: var(--globaia-green);
  background-color: var(--globaia-white);
  box-shadow: 0 0 0 0.2rem rgba(46, 156, 75, 0.16);
}

.auth-card .form-check-input {
  border-color: #b8c6bb;
  cursor: pointer;
}

.auth-card .form-check-input:checked {
  background-color: var(--globaia-green);
  border-color: var(--globaia-green);
}

.auth-card .form-check-input:focus {
  border-color: var(--globaia-green);
  box-shadow: 0 0 0 0.2rem rgba(46, 156, 75, 0.16);
}

.auth-card .form-check-label {
  color: var(--globaia-slate);
  cursor: pointer;
}

.btn-globaia-primary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  padding: 0.75rem 1.25rem;
  background: var(--globaia-green);
  color: var(--globaia-white);
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 12px 26px rgba(46, 156, 75, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-globaia-primary:hover {
  background: var(--globaia-green-dark);
  color: var(--globaia-white);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(31, 122, 56, 0.3);
}

.btn-globaia-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(31, 122, 56, 0.22);
}

.auth-card .alert {
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.auth-card .alert-warning {
  background: rgba(242, 184, 7, 0.16);
  color: #7a5b00;
}

.auth-card .alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #9f2431;
}

@media (max-width: 575.98px) {
  .auth-shell {
    align-items: flex-start;
    padding-top: 3rem;
  }

  .auth-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   GLOBAIA ADMIN DASHBOARD
   ========================================================================== */

.admin-shell {
  min-height: 100vh;
  display: flex;
  background: #f6faf5;
}

.admin-sidebar {
  width: 270px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  background: var(--globaia-charcoal);
  color: #dbeedd;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1040;
}

.admin-sidebar .brand {
  height: 88px;
  display: flex;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar .brand img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.admin-nav {
  padding: 1rem 0.85rem;
}

.admin-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  color: #dbeedd;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-nav a i {
  width: 22px;
  font-size: 1.05rem;
  color: #9bd6a8;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--globaia-white);
  transform: translateX(2px);
}

.admin-nav a:hover i {
  color: var(--globaia-yellow);
}

.admin-nav a.active {
  background: var(--globaia-green);
  color: var(--globaia-white);
  box-shadow: 0 10px 24px rgba(46, 156, 75, 0.28);
}

.admin-nav a.active i {
  color: var(--globaia-white);
}

.nav-section-label {
  margin: 1.15rem 0 0.45rem;
  padding: 0 0.85rem;
  color: #8fa696;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-main {
  min-width: 0;
  flex: 1;
}

.admin-topbar {
  min-height: 76px;
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--globaia-line);
  backdrop-filter: blur(14px);
}

.admin-topbar h1 {
  color: var(--globaia-ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.admin-content {
  padding: 1.5rem;
}

.admin-card,
.stat-card {
  background: var(--globaia-white);
  border: 1px solid var(--globaia-line);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 36px rgba(26, 29, 26, 0.06);
}

.stat-card {
  min-height: 112px;
  padding: 1.1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--globaia-sage-tint);
  color: var(--globaia-green-dark);
  font-size: 1.25rem;
}

.stat-value {
  color: var(--globaia-ink);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
}

.btn-globaia-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--globaia-line);
  border-radius: var(--radius-pill);
  background: var(--globaia-white);
  color: var(--globaia-green-dark);
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-globaia-outline:hover {
  background: var(--globaia-sage-tint);
  border-color: rgba(46, 156, 75, 0.35);
  color: var(--globaia-green-dark);
}

.table-globaia {
  vertical-align: middle;
}

.table-globaia thead th {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--globaia-line);
  color: var(--globaia-slate);
  background: #fbfdfb;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-globaia tbody td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--globaia-line);
  color: var(--globaia-ink);
  font-size: 0.92rem;
}

.table-globaia tbody tr:last-child td {
  border-bottom: 0;
}

.table-globaia tbody tr:hover {
  background: #fbfdfb;
}

.thumb-sm {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--globaia-line);
  background: var(--globaia-sage-tint);
}

.admin-content .alert {
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
}

.admin-content .alert-success {
  background: rgba(46, 156, 75, 0.12);
  color: var(--globaia-green-dark);
}

.admin-content .alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #9f2431;
}

/* Mobile admin layout */
@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 24px 0 60px rgba(26, 29, 26, 0.22);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-main {
    width: 100%;
  }

  .admin-topbar {
    padding: 0.85rem 1rem;
  }

  .admin-content {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .admin-topbar {
    gap: 0.75rem;
  }

  .admin-topbar h1 {
    font-size: 1rem;
  }

  .stat-card {
    min-height: 100px;
    padding: 0.9rem;
    gap: 0.75rem !important;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .admin-card {
    border-radius: 12px;
  }

  .table-globaia {
    min-width: 650px;
  }
}

.settings-preview-image {
  width: 100%;
  max-width: 420px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--globaia-line);
}