/* ============================================================
   RTHD Service Portal — Admin CSS
   Layered on top of style.css
   ============================================================ */

/* ---------- LOGIN PAGE ---------- */
.admin-login-body {
  background: linear-gradient(135deg, #004d38 0%, #006a4e 60%, #1a8866 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
}
.admin-login-wrap {
  width: 100%;
  max-width: 420px;
}
.admin-login-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.admin-login-brand {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rthd-border-soft);
}
.admin-login-brand .brand-logo {
  width: 64px; height: 64px;
  background: var(--rthd-green-light);
  color: var(--rthd-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin: 0 auto 14px;
  border: 1px solid var(--rthd-border);
}
.admin-login-brand h1 {
  font-size: 17px;
  margin: 0;
  color: var(--rthd-text);
}
.admin-login-brand .sub {
  font-size: 12.5px;
  color: var(--rthd-text-muted);
  margin-top: 4px;
}
.admin-login-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}

/* ---------- ADMIN LAYOUT ---------- */
.admin-body {
  background: var(--rthd-bg);
  min-height: 100vh;
  margin: 0;
  font-family: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
}

.admin-topbar {
  background: var(--rthd-green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.admin-topbar-inner {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  gap: 14px;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.brand-logo-sm {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}
.admin-brand-text .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.admin-brand-text .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.admin-topbar-right {
  display: flex;
  align-items: center;
}
.admin-user {
  font-size: 13px;
}
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: rgba(255,255,255,0.18);
}
.role-super_admin { background: var(--rthd-gold); color: #fff; }
.role-admin { background: rgba(255,255,255,0.18); color: #fff; }

.admin-sidebar-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 6px 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-sidebar-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
}

/* ---------- LAYOUT GRID ---------- */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 58px);
}

.admin-sidebar {
  width: 230px;
  background: #fff;
  border-right: 1px solid var(--rthd-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}

.admin-nav {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  flex: 1;
}
.admin-nav li { margin: 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--rthd-text);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.admin-nav a:hover {
  background: var(--rthd-green-light);
  text-decoration: none;
  color: var(--rthd-green-dark);
}
.admin-nav a.active {
  background: var(--rthd-green-light);
  border-left-color: var(--rthd-green);
  color: var(--rthd-green-dark);
}
.admin-nav .nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  color: var(--rthd-text-muted);
}
.admin-nav a.active .nav-icon,
.admin-nav a:hover .nav-icon { color: var(--rthd-green); }

.admin-nav-sep {
  font-size: 11px;
  font-weight: 600;
  color: var(--rthd-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px 4px;
}

.admin-sidebar-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--rthd-border-soft);
}

.admin-main {
  flex: 1;
  padding: 22px 26px 40px;
  min-width: 0;
}

/* ---------- MOBILE SIDEBAR ---------- */
@media (max-width: 991px) {
  .admin-sidebar {
    position: fixed;
    top: 58px;
    left: -250px;
    z-index: 90;
    width: 250px;
    transition: left 0.25s ease;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
  }
  .admin-sidebar.open {
    left: 0;
  }
  .admin-main {
    padding: 18px;
  }
}

@media (max-width: 575px) {
  .admin-topbar-inner { padding: 10px 12px; gap: 10px; }
  .admin-brand-text .title { font-size: 14px; }
  .admin-main { padding: 14px; }
}
