/*
 * ZNAdmin theme overrides.
 * Bootstrap 5 owns the layout. This file only adds the ZNAdmin shell,
 * Telerik RadMenu cleanup, and a few BS4 aliases still used by legacy pages.
 */

:root {
  --zn-primary: #0d6efd;
  --zn-primary-dark: #0a58ca;
  --zn-border: #cfe0f5;
  --zn-text: #1f2937;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--zn-text);
}
body > form {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main.container-fluid { flex: 1 0 auto; }
.status-bar { flex-shrink: 0; }

/* ===== Navbar (matches Login.aspx aesthetic) ===== */
.admin-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #e8f0fe 0%, #dce8f8 55%, #c8d8f0 100%);
  border-bottom: 1px solid rgba(13, 110, 253, 0.16);
  box-shadow: 0 10px 28px rgba(13, 110, 253, 0.14);
  min-height: 64px;
}

/* Brand */
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 1rem;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  font-weight: 700;
  color: var(--zn-text);
  text-decoration: none;
}
.admin-brand:hover {
  color: var(--zn-primary-dark);
  border-color: rgba(13, 110, 253, 0.28);
}
.admin-brand-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--zn-primary), var(--zn-primary-dark));
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.35);
}
.admin-brand-text {
  font-size: 1.08rem;
  letter-spacing: 0;
}

/* User / logout links on the right */
.admin-user-nav {
  padding: 0.2rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}
.admin-user-nav .nav-link {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.18s, color 0.18s;
}
.admin-user-nav .nav-link:hover {
  color: var(--zn-primary);
  background: rgba(255, 255, 255, 0.7);
}
.admin-user { cursor: default; }
.admin-logout:hover { color: #dc2626 !important; }

/* ===== Telerik RadMenu inside Bootstrap navbar ===== */
.admin-menu.RadMenu_MetroTouch,
.admin-menu.RadMenu_MetroTouch .rmRootGroup,
.admin-menu.RadMenu_MetroTouch .rmItem,
.admin-menu.RadMenu_MetroTouch li {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.admin-menu.RadMenu_MetroTouch .rmRootGroup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.28rem !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(13, 110, 253, 0.14) !important;
  border-radius: 0.95rem !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07) !important;
}
.admin-menu.RadMenu_MetroTouch a.rmRootLink {
  color: #334155 !important;
  border-radius: 0.7rem !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-menu.RadMenu_MetroTouch .rmText {
  color: inherit !important;
  font-size: inherit;
}
.admin-menu.RadMenu_MetroTouch .rmItem:hover > a,
.admin-menu.RadMenu_MetroTouch .rmSelected > a,
.admin-menu.RadMenu_MetroTouch .rmExpanded > a {
  color: #fff !important;
  background: linear-gradient(135deg, var(--zn-primary), var(--zn-primary-dark)) !important;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.24) !important;
}
.admin-menu.RadMenu_MetroTouch .rmGroup {
  min-width: 210px;
  padding: 0.35rem !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid var(--zn-border) !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14) !important;
}
.admin-menu.RadMenu_MetroTouch .rmGroup a.rmLink {
  color: #374151 !important;
  background: transparent !important;
  border-radius: 0.5rem !important;
  padding: 0.48rem 0.7rem !important;
  font-size: 0.875rem;
}
.admin-menu.RadMenu_MetroTouch .rmGroup .rmItem:hover > a {
  color: var(--zn-primary) !important;
  background: #eff6ff !important;
}

/* ===== Bootstrap 4 aliases used by legacy pages ===== */
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-auto { margin-left: auto !important; }
.font-weight-bold { font-weight: 700 !important; }
.text-right { text-align: right !important; }
