/*
 * ZN site theme - Cloned from ZNAdmin premium style.
 * RadMenu overrides live in ZnMain.master inline <style> (loaded after Telerik skin).
 * This file handles: layout, navbar shell, brand, user nav, RadGrid, status bar, BS4 aliases.
 */

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

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

/* ===== Navbar (Premium Glassmorphism) ===== */
nav.admin-nav,
.navbar.admin-nav {
  background: linear-gradient(160deg, #e8f0fe 0%, #dce8f8 50%, #c8d8f0 100%);
  border-bottom: 1px solid rgba(13, 110, 253, 0.18);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* ===== Brand (pill container with gradient icon) ===== */
a.admin-brand,
.navbar a.admin-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  margin-right: 1rem !important;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem !important;
  border: 1px solid rgba(13, 110, 253, 0.16) !important;
  border-radius: 0.95rem !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
  font-weight: 700 !important;
  color: var(--zn-text) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
a.admin-brand:hover,
.navbar a.admin-brand:hover {
  color: var(--zn-primary-dark) !important;
  border-color: rgba(13, 110, 253, 0.28) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12) !important;
}
.admin-brand-icon {
  width: 38px;
  height: 38px;
  min-width: 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 capsule ===== */
ul.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);
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
ul.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;
  white-space: nowrap;
}
ul.admin-user-nav .nav-link:hover {
  color: var(--zn-primary);
  background: rgba(255, 255, 255, 0.7);
}
.admin-user { cursor: default; }
a.admin-logout:hover {
  color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.08);
}

/* ===== Telerik RadGrid — Bootstrap table style ===== */
.RadGrid,
.RadGrid_Bootstrap {
  font-family: inherit;
  font-size: 0.875rem;
  width: 100%;
}

.RadGrid .rgHeader,
.RadGrid th.rgHeader {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.RadGrid .rgHeader a {
  color: #495057;
  text-decoration: none;
}

.RadGrid .rgHeader a:hover {
  color: #0d6efd;
}

.RadGrid .rgRow > td,
.RadGrid .rgAltRow > td {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid #dee2e6;
  vertical-align: middle;
  color: #212529;
}

.RadGrid .rgAltRow > td {
  background-color: #f8f9fa;
}

.RadGrid .rgRow:hover > td,
.RadGrid .rgAltRow:hover > td {
  background-color: #e9f3ff;
}

.RadGrid .rgSelectedRow > td {
  background-color: #cfe2ff;
  color: #084298;
}

.RadGrid .rgPager {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #495057;
}

.RadGrid .rgPager a {
  color: #0d6efd;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.RadGrid .rgPager a:hover {
  background-color: #e9ecef;
}

.RadGrid .rgPager .rgNumPart a.rgCurrentPage {
  background-color: #0d6efd;
  color: #fff;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

/* RadGrid pager input */
.RadGrid .rgPager input[type="text"],
.RadGrid .rgPager .rgNumPart input {
  display: inline-block !important;
  width: 2.5rem !important;
  height: 1.75rem !important;
  padding: 0.15rem 0.3rem !important;
  font-size: 0.875rem !important;
  color: #212529 !important;
  background-color: #fff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0.25rem !important;
  text-align: center !important;
}

/* ===== Footer Status Bar ===== */
.status-bar {
  background-color: #fff;
  border-top: 1px solid #dee2e6;
  font-size: 0.8rem;
  color: #6c757d;
  padding: 0.6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* ===== Bootstrap 4 backward-compat aliases ===== */
.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; }
.float-right { float: right !important; }
