/* /assets/css/admin-shell.css */
/* Poppins to match the rest of the app */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root { --sidebar-w: 260px; }

body { font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; }

/* Shell layout (sidebar + main) */
.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  background:#f6f7fb;
}

/* Sidebar */
.app-sidebar{
  background:#0b1426;
  color:#c7d5ee;
  display:flex;
  flex-direction:column;
  min-height:100%;
  width:var(--sidebar-w);
}

/* Brand (top of sidebar) */
.app-brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.app-brand .text-sm{ font-size:14px; font-weight:600; }
.app-brand .text-xs{ font-size:12px; color:#9fb0d2; }

/* Scroll area for links */
.sb-scroll{
  flex:1 1 auto;
  overflow:auto;
  padding:6px 0;
}

/* Nav links */
.nav-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  margin:4px 10px;
  border-radius:10px;
  color:#cbd5e1;
  text-decoration:none;
  font-size:14px;
  line-height:1.25;
  white-space:nowrap;
}
.nav-link:hover{ background:#0e1c34; color:#fff; }
.nav-link.is-active{ background:#0e1c34; color:#fff; }

.nav-link svg{
  flex:0 0 16px;
  width:16px !important;
  height:16px !important;
}

/* Optional small section label style (if you add sections later) */
.nav-section{
  padding:10px 12px 6px 16px;
  font-size:11px;
  letter-spacing:.06em;
  color:#8aa0c9;
  text-transform:uppercase;
}

/* Bottom actions pinned */
.sidebar-bottom{
  margin-top:auto;
  padding:12px;
  display:grid;
  gap:8px;
}

/* Buttons + cards (match partner look) */
.ej-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  box-shadow:0 8px 16px rgba(15,23,42,.05);
}
.ej-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:40px;
  padding:0 14px;
  border-radius:10px;
  font-weight:600;
  border:0;
}
.ej-btn.primary{ background:#0f172a; color:#fff; }
.ej-btn.ghost{ background:#fff; border:1px solid #e2e8f0; color:#0f172a; }

/* Topbar search (keeps icon size sane if you use it on admin pages) */
.app-topbar .search{
  display:flex; align-items:center; gap:8px;
  height:38px; padding:0 10px;
  border:1px solid var(--line, #e2e8f0);
  border-radius:12px; background:#fff;
}
.app-topbar .search > svg{
  width:16px !important; height:16px !important;
  min-width:16px; min-height:16px; flex:0 0 16px;
}

/* Match listings page padding */
.page { padding: 20px; }

/* (optional, keeps content centered like listings) */
.admin-main .admin-topbar,
.admin-main .admin-kpis,
.admin-main .admin-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Disable hover in "Recent applications" table --- */
.card .table tbody tr:hover,
.card .table tbody tr:hover td {
  background: transparent !important;
}

/* If your base CSS changes text color on hover, neutralize it too */
.card .table tbody tr:hover,
.card .table tbody tr:hover a,
.card .table tbody tr:hover .muted {
  color: inherit !important;
}

/* --- Disable hover in "At a glance" --- */
.glance-row:hover {
  background: transparent !important;
}

/* Stop any hover/animation effects on the bars */
.glance-bar span {
  transition: none !important;
}

/* === Admin search (modern pill input) === */
.site-search { width: 340px; max-width: 100%; }

.site-search .input-icon {
  position: relative;
  display: block;
}

.site-search .input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: #64748b;
  pointer-events: none;
}

.site-search input[type="search"] {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 38px;   /* room for search icon + clear button */
  border-radius: 999px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  font: inherit;
  color: #0f172a;
}

.site-search .input-icon:focus-within svg { color: #0f172a; }
.site-search input[type="search"]::placeholder { color: #94a3b8; }

.site-search input[type="search"]:focus {
  outline: 0;
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15,23,42,.06);
}

/* hide native search decorations (Safari/Chrome) */
.site-search input[type="search"]::-webkit-search-decoration,
.site-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Clear button */
.site-search .clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: none;                /* toggled to inline-flex when there is text */
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  opacity: .7;
}
.site-search .clear:hover { opacity: 1; background: #f1f5f9; }
.site-search .clear svg { width: 16px; height: 16px; }
.site-search .clear.show { display: inline-flex; }

