﻿/* ==========================================================================
   MIRO UI (Global Admin Styles) — shared across all plugin pages
   Matches your hero + cards + tables + inputs style
   ========================================================================== */

/* ---------- Layout wrapper ---------- */
.mirolabs-wrap {
  max-width: none;
  width: 100%;
  margin: 24px 0 40px 0;
  padding-bottom: 24px;
  position: relative;
}

.mirolabs-wrap h1 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Hero (dark banner) ---------- */
.mirolabs-hero {
  margin-top: 8px;
  margin-bottom: 18px;
  border-radius: 16px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at top left, rgba(129,140,248,0.22), transparent 55%),
    radial-gradient(circle at top right, rgba(45,212,191,0.22), transparent 55%),
    linear-gradient(135deg, #020617, #111827 45%, #020617 100%);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15,23,42,0.7);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mirolabs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,0.2), transparent 50%, rgba(15,23,42,0.4));
  pointer-events: none;
}

.mirolabs-hero * {
  background-color: transparent !important;
  box-shadow: none !important;
  border-color: transparent;
}

.mirolabs-hero,
.mirolabs-hero p,
.mirolabs-hero span,
.mirolabs-hero div,
.mirolabs-hero strong,
.mirolabs-hero a {
  color: #e5e7eb !important;
}

.mirolabs-hero-pill {
  position: relative;
  z-index: 1;
  min-width: 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.mirolabs-hero-pill img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.mirolabs-hero-main { position: relative; z-index: 1; flex: 1; }
.mirolabs-hero-title-row { display:flex; align-items:center; gap:8px; margin-bottom:2px; }
.mirolabs-hero-title { font-size: 16px; font-weight: 500; margin: 0; color: #f9fafb !important; }
.mirolabs-hero-sub { margin: 0; font-size: 13px; color: #cbd5f5 !important; }

.mirolabs-hero-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(22,163,74,0.22) !important;
  border: 1px solid rgba(34,197,94,0.7) !important;
  color: #bbf7d0 !important;
}

.mirolabs-hero-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mirolabs-chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(148,163,184,0.65);
  background: rgba(15,23,42,0.7);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e5e7eb !important;
}

.mirolabs-chip strong { font-weight: 600; color: #f9fafb !important; }
.mirolabs-chip span { opacity: 0.85; }

.mirolabs-chip-pill {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid rgba(148,163,184,0.65);
  background: rgba(15,23,42,0.7);
  color: #e5e7eb !important;
}
.mirolabs-chip-pill.on  { border-color:#4ade80 !important; background:rgba(22,163,74,0.28) !important; color:#bbf7d0 !important; }
.mirolabs-chip-pill.off { border-color:#fecaca !important; background:rgba(248,113,113,0.24) !important; color:#fee2e2 !important; }

.mirolabs-hero-metrics { position: relative; z-index: 1; margin-left: auto; display:flex; flex-direction:column; gap:6px; align-items:flex-end; font-size:12px; }
.mirolabs-hero-metric-main { font-size: 13px; color:#d1fae5 !important; }
.mirolabs-hero-metric-main strong { font-size:16px; font-weight:700; margin-right:4px; color:#bbf7d0 !important; }
.mirolabs-hero-metric-sub { color:#9ca3af !important; font-size:11px; max-width:240px; text-align:right; }

/* ---------- Panels / cards ---------- */
.mirolabs-panel {
  background:#ffffff;
  border-radius:14px;
  padding:20px 22px;
  border:1px solid #e5e7eb;
  box-shadow:0 12px 32px rgba(148,163,184,0.20);
  transition:box-shadow .16s ease,border-color .16s ease,transform .16s ease;
}
.mirolabs-panel:hover {
  border-color:#c7d2fe;
  box-shadow:0 18px 38px rgba(15,23,42,0.16);
  transform:translateY(-1px);
}

/* ---------- Inputs ---------- */
.mirolabs-wrap input[type="text"],
.mirolabs-wrap input[type="number"],
.mirolabs-wrap textarea,
.mirolabs-wrap select {
  width: 280px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 13px;
  color: #111827;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-sizing: border-box;
}
.mirolabs-wrap textarea { min-height: 80px; resize: vertical; }
.mirolabs-wrap input[type="text"]:focus,
.mirolabs-wrap input[type="number"]:focus,
.mirolabs-wrap textarea:focus,
.mirolabs-wrap select:focus {
  outline: none;
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(14,165,233,0.25);
}

.mirolabs-wrap .description {
  margin-top: 6px !important;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fafb;
  border-left: 3px solid #0ea5e9;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.5;
}

/* ---------- Tables ---------- */
.mirolabs-wrap table.widefat thead th {
  background: linear-gradient(90deg, #eef2ff, #e0f2fe);
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  color: #111827;
  font-weight: 600;
}
.mirolabs-wrap table.widefat tbody td { font-size: 13px; vertical-align: top; }

/* ---------- Buttons ---------- */
.mirolabs-wrap .button-primary {
  background: #D8B15A !important;
  border: none !important;
  color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(216, 177, 90, 0.3) !important;
  font-weight: 600 !important;
  transition: background 0.2s ease !important;
  border-radius:999px;
  padding:7px 20px;
  font-size:14px;
}
.mirolabs-wrap .button-primary:hover {
  background: #C49A4A !important;
  color: #1a1a1a !important;
}
.mirolabs-wrap .button-secondary {
  background: #D8B15A !important;
  border: none !important;
  color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(216, 177, 90, 0.3) !important;
  font-weight: 600 !important;
  transition: background 0.2s ease !important;
  border-radius:999px;
  padding:7px 18px;
}
.mirolabs-wrap .button-secondary:hover { 
  background: #C49A4A !important;
  color: #1a1a1a !important;
}

/* ---------- Toggle switch ---------- */
.mirolabs-switch { position:relative; display:inline-block; width:46px; height:24px; }
.mirolabs-switch input { opacity:0; width:0; height:0; }
.mirolabs-slider {
  position:absolute; cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background:#e5e7eb; border-radius:999px;
  transition:.22s ease;
}
.mirolabs-slider:before {
  content:"";
  position:absolute;
  height:18px; width:18px;
  left:3px; top:3px;
  background:#ffffff;
  border-radius:50%;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
  transition:.22s ease;
}
.mirolabs-switch input:checked + .mirolabs-slider {
  background: linear-gradient(135deg,#0ea5e9,#22c55e);
}
.mirolabs-switch input:checked + .mirolabs-slider:before {
  transform: translateX(22px);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .mirolabs-hero { flex-direction: column; align-items: flex-start; }
  .mirolabs-hero-metrics { align-items: flex-start; }
  .mirolabs-wrap input[type="text"],
  .mirolabs-wrap input[type="number"],
  .mirolabs-wrap textarea,
  .mirolabs-wrap select { width: 100%; }
}
