/* Admin top bar, the admin sign-in gate, the Google sign-in button and the admin sub-tabs
   Moved out of styles.css on 2026-11-05 (one big file split by section; the rules are unchanged and in the same order).
   Every page links this file right after css/admin-topbar.css. */

/* ─── EXECUTIVE ADMIN IDENTITY & TOPBAR (ENTERPRISE HIGH-END DESIGN) ─── */
.admin-body {
  background: #08080a;
}

/* ═════════════════════════════════════════════════
   EXECUTIVE ADMIN CAPSULE BANNER (Reference Visual Identity)
   ═════════════════════════════════════════════════ */
.admin-capsule-wrapper {
  max-width: 1320px;
  margin: 20px auto 26px;
  padding: 0 20px;
  position: relative;
  z-index: 100;
}

.admin-capsule-banner {
  background: linear-gradient(180deg, #0b0e17 0%, #07090f 100%);
  border: 1.5px solid rgba(212, 160, 23, 0.45);
  border-radius: 50px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 22px rgba(212, 160, 23, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 10px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.admin-capsule-banner:hover {
  border-color: rgba(212, 160, 23, 0.65);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.75), 0 0 28px rgba(212, 160, 23, 0.14);
}

/* RTL Start (Right Side in RTL): Verified Avatar + Welcome Text */
.admin-capsule-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-capsule-ava-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid #d4a017;
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.35);
  background: #141720;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: inline-block;
  flex-shrink: 0;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.admin-capsule-ava-wrap:hover {
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(212, 160, 23, 0.6);
}

.admin-capsule-ava-wrap .ava-upload-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f3ba2f;
  font-size: 18px;
  opacity: 0;
  transition: opacity .2s ease;
  border-radius: 50%;
}

.admin-capsule-ava-wrap:hover .ava-upload-hint {
  opacity: 1;
}

.admin-capsule-ava {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.admin-capsule-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
  text-align: right;
}

.admin-capsule-greeting {
  font-size: 24px;
  font-weight: 800;
  color: #f3ba2f;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  letter-spacing: -0.3px;
}

.admin-capsule-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: #8e9ba9;
  margin-top: 1px;
  font-family: 'Cairo', sans-serif;
}

/* RTL End (Left Side in RTL): Two Bars Action Button (2 شرط) */
.admin-capsule-left {
  display: flex;
  align-items: center;
  position: relative;
}

.admin-menu-dropdown-wrapper {
  position: relative;
}

.admin-capsule-dots-btn {
  background: transparent;
  border: none;
  color: #f3ba2f;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 10001 !important;
  pointer-events: auto !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.admin-capsule-dots-btn:hover {
  background: rgba(212, 160, 23, 0.18);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.35);
}

.admin-capsule-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: rgba(13, 17, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(212, 160, 23, 0.35);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 160, 23, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10002 !important;
  transform-origin: top left;
  animation: menuFadeIn .18s ease-out;
  pointer-events: auto !important;
}

.admin-capsule-dropdown.hidden {
  display: none !important;
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #e2e8f0;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  text-decoration: none;
  cursor: pointer !important;
  pointer-events: auto !important;
  width: 100%;
  text-align: right;
  transition: background .15s, color .15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.admin-dropdown-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: var(--gold);
}

.admin-dropdown-item:hover {
  background: rgba(212, 160, 23, 0.14);
  color: #ffffff;
}

.admin-dropdown-item.item-danger {
  color: #f87171;
}

.admin-dropdown-item.item-danger i {
  color: #f87171;
}

.admin-dropdown-item.item-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ff8585;
}

.admin-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}

@media (max-width: 640px) {
  .admin-capsule-wrapper {
    margin: 12px auto 18px;
    padding: 0 12px;
  }
  .admin-capsule-banner {
    border-radius: 32px;
    padding: 8px 16px;
    min-height: 70px;
  }
  .admin-capsule-ava-wrap {
    width: 46px;
    height: 46px;
    border-width: 2px;
  }
  .admin-capsule-greeting {
    font-size: 18px;
    gap: 6px;
  }
  .admin-capsule-sub {
    font-size: 11.5px;
  }
  .admin-capsule-dots-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

.admin-footer {
  background: #060608;
  border-top: 1px solid var(--b1);
  padding: 22px 0;
  text-align: center;
  font-size: 12px;
  color: var(--t3);
  margin-top: 40px;
}

/* ─── FULLSCREEN ADMIN AUTH GATE ─── */
.admin-login-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #171720 0%, #08080a 100%);
  padding: 24px;
}
.admin-login-card {
  background: rgba(22, 22, 28, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 160, 23, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 32px rgba(212, 160, 23, 0.1);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 38px 30px;
  text-align: center;
  animation: tin .3s ease;
}
.admin-login-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.admin-login-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--t1);
  margin-bottom: 6px;
}
.admin-login-sub {
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 24px;
}
.admin-login-form {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-login-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--b1);
}
.admin-return-link {
  color: var(--t3);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.admin-return-link:hover {
  color: var(--gold);
}
.btn-block {
  width: 100%;
}

/* ─── AUTH DIVIDER & GOOGLE SIGN-IN ─── */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0;
  color: var(--t3);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--b1);
}
.auth-divider span {
  padding: 0 12px;
  color: var(--t3);
  font-size: 12px;
  font-weight: 600;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  padding: 11px 16px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.btn-google:hover {
  background: #f1f3f4;
  color: #111111;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.btn-google:active {
  transform: translateY(0);
}
.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.google-icon {
  flex-shrink: 0;
}

/* ─── ADMIN SUBNAV TABS ─── */
.admin-subnav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--b1);
  padding-bottom: 14px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.admin-subtab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--s);
  border: 1px solid var(--b1);
  color: var(--t2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
}
.admin-subtab-btn:hover {
  color: var(--t1);
  border-color: var(--b2);
  background: var(--card);
}
.admin-subtab-btn.active {
  background: rgba(212, 160, 23, 0.12);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.15);
}
.badge-count {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
