﻿/* Miro 404 Monitor Admin Page Styles */
.mirolabs-alt-wrap{ margin: 10px 20px 20px 0; font-weight:400; }
.mirolabs-alt-wrap, .mirolabs-alt-wrap *{ box-sizing:border-box; font-weight:400; }
.mirolabs-alt-wrap code, .mirolabs-alt-wrap pre{ font-weight:400; }

/* HERO (SS STYLE) */
.mirolabs-alt-wrap .af-hero{
  margin: 0 0 18px;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f3f4f6 0%, #eef2f7 100%);
  border: 1px solid #d6d9de;
  border-left: 6px solid #f59e0b;
  box-shadow: 0 8px 20px rgba(15,23,42,0.07);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.mirolabs-alt-wrap .af-hero-pill{
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.mirolabs-alt-wrap .af-hero-pill-inner{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.mirolabs-alt-wrap .af-hero-pill-inner img{ width:112%; height:112%; object-fit:contain; display:block; }
.mirolabs-alt-wrap .af-hero-pill-fallback{
  font-weight: 600; letter-spacing:.04em; font-size:12px; color:#111827;
}

.mirolabs-alt-wrap .af-hero-main{ min-width:0; }
.mirolabs-alt-wrap .af-hero-title-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:2px; }
.mirolabs-alt-wrap .af-hero-title{ margin:0; font-size:15px; font-weight:600; color:#111827; }
.mirolabs-alt-wrap .af-hero-tag{
  padding: 2px 8px; border-radius:999px;
  font-size:10px; text-transform:uppercase; letter-spacing:.06em;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  color:#374151; font-weight:600;
}
.mirolabs-alt-wrap .af-hero-tag.alt{
  background: rgba(238,242,255,0.70);
  border-color: rgba(199,210,254,0.95);
  color:#1e3a8a;
}
.mirolabs-alt-wrap .af-hero-sub{ margin:0; font-size:13px; color:#4b5563; line-height:1.5; font-weight:400; }

.mirolabs-alt-wrap .af-hero-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.mirolabs-alt-wrap .af-chip-pro{
  position:relative;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
  display:inline-flex; align-items:center; gap:8px;
  color:#111827; white-space:nowrap;
  font-weight:400;
}
.mirolabs-alt-wrap .af-chip-pro::before{
  content:"";
  width:8px; height:8px; border-radius:999px;
  background:#94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,0.18);
}
.mirolabs-alt-wrap .af-chip-pro strong{ font-weight:600; color:#111827; }
.mirolabs-alt-wrap .af-chip-sub{ color:#6b7280; font-weight:400; font-size:12px; }

.mirolabs-alt-wrap .af-chip-alt{ background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.22); }
.mirolabs-alt-wrap .af-chip-alt::before{ background:#f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.mirolabs-alt-wrap .af-chip-scan{ background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.18); }
.mirolabs-alt-wrap .af-chip-scan::before{ background:#2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.16); }
.mirolabs-alt-wrap .af-chip-safe{ background: rgba(22,163,74,0.10); border-color: rgba(22,163,74,0.20); }
.mirolabs-alt-wrap .af-chip-safe::before{ background:#16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.16); }
.mirolabs-alt-wrap .af-chip-purple{ background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.26); color:#3b1a8a; }
.mirolabs-alt-wrap .af-chip-purple::before{ background:#7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.16); }
.mirolabs-alt-wrap .af-chip-purple span{ color: rgba(59,26,138,0.72); }

/* Tip box */
.mirolabs-alt-wrap .af-hero-metrics{
  justify-self:end;
  align-self:stretch;
  min-width: 300px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(214,217,222,0.95);
  border-radius: 12px;
  padding: 10px 12px;
  display:flex; flex-direction:column; gap:8px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  position:relative; overflow:hidden;
  font-weight:400;
}
.mirolabs-alt-wrap .af-hero-metrics::before{
  content:"";
  position:absolute; left:0; top:0; right:0;
  height:2px;
  background: linear-gradient(90deg, rgba(245,158,11,0.8), rgba(37,99,235,0.55));
}
.mirolabs-alt-wrap .af-tip-title{ display:flex; align-items:center; gap:8px; font-size:13px; color:#111827; font-weight:400; }
.mirolabs-alt-wrap .af-tip-title strong{ font-weight:600; }
.mirolabs-alt-wrap .af-tip-ico{
  width:24px; height:24px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.22);
  font-size:14px; line-height:1;
}
.mirolabs-alt-wrap .af-tip-sub{ font-size:12px; color:#6b7280; line-height:1.35; font-weight:400; }
.mirolabs-alt-wrap .af-tip-hl{
  display:inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.22);
  color: #7c4a03;
  font-weight:600;
}

/* Cards */
.mirolabs-alt-wrap .af-card{
  background:#fff;
  border-radius:16px;
  border:1px solid #e5e7eb;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.mirolabs-alt-wrap .af-card-header{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom: 12px; }
.mirolabs-alt-wrap .af-card-title{ font-size:15px; font-weight:600; color:#111827; }
.mirolabs-alt-wrap .af-card-sub{ font-size:12px; color:#6b7280; font-weight:400; }

.mirolabs-alt-wrap .af-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top: 10px;
}
.mirolabs-alt-wrap .af-toolbar .button{ font-size:13px; border-radius:999px; padding: 6px 14px; font-weight:500 !important; }
.mirolabs-alt-wrap .af-toolbar .button-primary{ border-radius:999px; padding: 6px 16px; font-weight:500 !important; }
.mirolabs-alt-wrap .af-muted{ font-size:12px; color:#6b7280; font-weight:400; }

/* Summary grid */
.mirolabs-alt-wrap .af-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 12px;
}
.mirolabs-alt-wrap .af-kpi{
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  padding: 12px 12px;
}
.mirolabs-alt-wrap .af-kpi small{ display:block; font-size:12px; color:#6b7280; margin-bottom:2px; font-weight:400; }
.mirolabs-alt-wrap .af-kpi strong{ display:block; font-size:13px; color:#111827; font-weight:600; margin-bottom:4px; }
.mirolabs-alt-wrap .af-kpi .af-val{ font-size:22px; font-weight:600; color:#111827; }
.mirolabs-alt-wrap .af-kpi .af-sub{ font-size:12px; color:#6b7280; margin-top:4px; font-weight:400; }

.mirolabs-alt-wrap .af-box{
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  padding: 12px 12px;
}
.mirolabs-alt-wrap .af-box strong{ font-weight:600; }
.mirolabs-alt-wrap .af-box ol{ margin: 6px 0 0; padding-left: 18px; max-height: 150px; overflow:auto; }
.mirolabs-alt-wrap .af-box li{ margin: 2px 0; word-break: break-all; font-size:12px; color:#374151; font-weight:400; }
.mirolabs-alt-wrap .af-box code{ background:#f9fafb; padding:2px 4px; border-radius:6px; }

.mirolabs-alt-wrap .af-help-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.mirolabs-alt-wrap .af-help{
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
}
.mirolabs-alt-wrap .af-help strong{ font-weight:600; color:#111827; display:block; margin-bottom:6px; }
.mirolabs-alt-wrap .af-help ul{ margin: 0 0 0 16px; padding:0; }
.mirolabs-alt-wrap .af-help li{ margin: 2px 0; color:#374151; font-size:12px; font-weight:400; }
.mirolabs-alt-wrap .af-help-green{ background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.18); }
.mirolabs-alt-wrap .af-help-blue{  background: rgba(37,99,235,0.07); border-color: rgba(37,99,235,0.16); }
.mirolabs-alt-wrap .af-help-orange{background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.22); }

/* Table (full width, clean) */
.mirolabs-alt-wrap .af-table-wrap{
  margin-top: 10px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  overflow: hidden;
}
.mirolabs-alt-wrap .af-table-head{
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f3f4f6;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.mirolabs-alt-wrap .af-table-head h2{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#111827;
}
.mirolabs-alt-wrap .af-table-head span{ font-size:12px; color:#6b7280; font-weight:400; }

.mirolabs-alt-wrap table.widefat{
  margin:0;
  border:none;
  width:100%;
  table-layout: fixed;
}
.mirolabs-alt-wrap table.widefat thead th{
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  position: relative;
}
.mirolabs-alt-wrap table.widefat tbody td{
  font-size: 13px;
  color:#111827;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
  padding-top: 8px;
  padding-bottom: 8px;
  font-weight:400;
}
.mirolabs-alt-wrap table.widefat tbody tr:nth-child(even) td{ background: #fafafa; }

/* column behaviors */
.mirolabs-alt-wrap td.af-nowrap{ white-space:nowrap; }
.mirolabs-alt-wrap td.af-ellipsis{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mirolabs-alt-wrap td.af-break{ word-break: break-all; }

/* Resizer */
.mirolabs-alt-wrap .mirolabs-404-resizer{
  position:absolute; top:0; right:-3px;
  width:6px; height:100%;
  cursor: col-resize;
  user-select:none;
}
.mirolabs-alt-wrap .mirolabs-404-resizer::before{
  content:"";
  position:absolute;
  top:10%; bottom:10%;
  left:50%;
  width:1px;
  transform: translateX(-50%);
  background: rgba(148,163,184,0.8);
  opacity:0;
  transition: opacity .12s ease;
}
.mirolabs-alt-wrap th:hover .mirolabs-404-resizer::before{ opacity:1; }
.mirolabs-alt-wrap th.mirolabs-404-resizing,
.mirolabs-alt-wrap th.mirolabs-404-resizing *{ cursor: col-resize !important; }

@media (max-width: 980px){
  .mirolabs-alt-wrap .af-hero{ grid-template-columns: 52px 1fr; }
  .mirolabs-alt-wrap .af-hero-metrics{ grid-column: 1 / -1; min-width:0; }
  .mirolabs-alt-wrap .af-help-row{ grid-template-columns: 1fr; }
  .mirolabs-alt-wrap .af-grid{ grid-template-columns: repeat(1, minmax(0,1fr)); }
}
/* KPI tiles (Total hits / Unique URLs / Referrers / IPs) */
.mirolabs-alt-wrap .af-kpi{
  background: #F5F6F7 !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 6px 18px rgba(15,23,42,0.04) !important; /* softer */
}

/* (optional) if you want the two "Top URLs / Top referrers" boxes to match too */
.mirolabs-alt-wrap .af-box{
  background: #F5F6F7 !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 6px 18px rgba(15,23,42,0.04) !important;
}

/* Utility classes for inline replacements */
.mirolabs-404-toolbar-mt{ margin-top:6px; }
.mirolabs-404-form-m0{ margin:0; }
.mirolabs-404-kpi-span3{ grid-column: span 3; }
.mirolabs-404-box-span6{ grid-column: span 6; }
.mirolabs-404-strong-block{ display:block; margin:4px 0 6px; }
.mirolabs-404-th-width{ width:150px; min-width:150px; }
.mirolabs-404-th-width-90{ width:90px; min-width:90px; text-align:center; }
.mirolabs-404-th-width-240{ width:240px; min-width:240px; }
.mirolabs-404-th-width-260{ width:260px; min-width:260px; }
.mirolabs-404-td-center{ text-align:center; }


