/* Optimum Hotspot — shared design system (mobile-first). */
:root {
  --brand: #0e9f8a;
  --brand-dark: #0b7d6d;
  --brand-ink: #06322b;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); }

.container { max-width: 1080px; margin: 0 auto; padding: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 12px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--ink);
}
.input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Badges */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-active, .badge-success, .badge-processed { background: #dcfce7; color: #15803d; }
.badge-unused { background: #e0f2fe; color: #0369a1; }
.badge-expired, .badge-revoked, .badge-failed, .badge-rejected { background: #fee2e2; color: #b91c1c; }
.badge-pending, .badge-requested { background: #fef3c7; color: #b45309; }
.badge-info { background: #e0e7ff; color: #4338ca; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
tr:last-child td { border-bottom: none; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Tabs */
.tabs { display: flex; gap: 6px; background: #e2e8f0; padding: 4px; border-radius: 12px; }
.tab {
  flex: 1; padding: 10px; border: none; background: transparent; border-radius: 9px;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.tab.active { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 4px rgba(15,23,42,0.1); }

/* Utility */
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.hidden { display: none !important; }

/* Remote access */
.ra-banner { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; display: flex; align-items: flex-start; gap: 10px; }
.ra-banner-close { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: #9a3412; margin-left: auto; padding: 0 4px; }
.ra-port-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; flex-wrap: wrap; }
.ra-port-icon { font-size: 26px; }
.ra-port-info { flex: 1; min-width: 160px; }
.ra-port-title { font-weight: 700; font-size: 16px; }
.ra-port-action { display: flex; gap: 8px; }
.ra-stat { flex: 1; min-width: 120px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 16px; }
.ra-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.ra-detail { padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.ra-steps { margin: 12px 0 0; padding-left: 20px; line-height: 1.9; }

@media (max-width: 600px) {
  .container { padding: 12px; }
  .card { padding: 14px; }
}

/* Router provisioning cards (zero-touch install) */
.prov-code { background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:12px 14px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12px; white-space:pre-wrap; word-break:break-all; color:#334155; margin-top:10px; }

/* SMS event notification toggles */
.sms-event { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.sms-event:last-of-type { border-bottom: none; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background .15s ease; }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(15,23,42,.25); transition: transform .15s ease; }
.switch input:checked + .slider { background: var(--brand, #0e9f8a); }
.switch input:checked + .slider::before { transform: translateX(18px); }
