/* ===========================================================
   AZ Managed IT — Tabs (Transparent Dark Mode)
   File: tabs.css
   =========================================================== */

/* ===== BASE LAYOUT ===== */
#mis-tabs {
  --bg: rgba(11, 11, 11, 0.75); /* semi-transparent background */
  --surface: rgba(17, 17, 17, 0.65);
  --surface-2: rgba(21, 21, 21, 0.55);
  --ink: #e8edf4;
  --muted: #a9b5c5;
  --ring: rgba(255, 255, 255, 0.08);
  --yellow: #ffd700;
  --focus: rgba(255, 255, 255, 0.25);

  backdrop-filter: blur(4px);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
}

/* ===== LEFT RAIL ===== */
#mis-tabs .az-tablist {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 14px;
  list-style: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  backdrop-filter: blur(6px);
}

/* ===== TABS ===== */
#mis-tabs .az-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
  line-height: 1.4;
}

#mis-tabs .az-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

#mis-tabs .az-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

#mis-tabs .az-tab[aria-selected="true"] {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.25);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.2);
}

/* ===== PANELS ===== */
#mis-tabs .az-panel {
  grid-column: 2;
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

#mis-tabs .az-panel[hidden] {
  display: none !important;
}

#mis-tabs h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--yellow);
}

/* ===== ROWS ===== */
#mis-tabs .rows {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

#mis-tabs .row {
  display: grid;
  grid-template-columns: minmax(200px, 270px) 1fr;
  gap: 18px;
  background: var(--surface-2);
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: 16px 18px;
  transition: background 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(4px);
}

#mis-tabs .row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

#mis-tabs .row h4 {
  color: #fff;
  margin: 0 0 6px;
  font-weight: 600;
}

#mis-tabs .row p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.55;
}

#mis-tabs .row ul {
  margin: 0;
  padding-left: 18px;
}

#mis-tabs .row li {
  margin: 4px 0;
  color: var(--ink);
}

/* ===== BULLETS ===== */
#mis-tabs .bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 12px 0;
}

#mis-tabs .bullets ul {
  margin: 0;
  padding-left: 18px;
}

#mis-tabs .bullets li {
  margin: 6px 0;
  color: var(--ink);
}

/* ===== BUTTONS ===== */
#mis-tabs .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

#mis-tabs .btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

#mis-tabs .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

#mis-tabs .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

#mis-tabs .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 980px) {
  #mis-tabs {
    display: block;
  }

  #mis-tabs .az-tablist {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-radius: 12px;
    padding: 10px;
    backdrop-filter: blur(4px);
  }

  #mis-tabs .az-tab {
    display: inline-flex;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 8px;
  }

  #mis-tabs .az-panel {
    margin-top: 16px;
  }
}
