:root {
  --navy: #182b42;
  --navy-2: #233d58;
  --teal: #238e8b;
  --teal-soft: #e5f5f3;
  --blue: #3478d4;
  --purple: #7561b5;
  --orange: #d88a40;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --line: #e3e9f0;
  --text: #243346;
  --muted: #718095;
  --danger: #b53d4d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 250px; flex: 0 0 250px; min-height: 100vh; padding: 26px 16px 20px; display: flex; flex-direction: column; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 34px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #55c6bc, #287e9c); font-size: 23px; font-weight: 800; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand span { margin-top: 3px; color: #aebecd; font-size: 11px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; border-radius: 12px; color: #b9c7d5; background: transparent; text-align: left; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(70, 184, 177, .18); color: #fff; box-shadow: inset 3px 0 var(--teal); }
.nav-icon { width: 22px; color: #8ed5d0; font-size: 20px; text-align: center; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 15px 12px 0; color: #90a1b3; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.environment-status { display: flex; align-items: center; gap: 8px; min-width: 0; }
.logout-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; color: #c7d4e1; background: transparent; font-size: 12px; }
.logout-button:hover { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #62d0a4; box-shadow: 0 0 0 4px rgba(98,208,164,.12); }
.main-area { flex: 1; min-width: 0; }
.topbar { min-height: 112px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 42px; background: var(--surface); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 7px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 27px; letter-spacing: -.035em; }
h2 { margin-bottom: 5px; font-size: 20px; letter-spacing: -.025em; }
.connection-box { display: flex; align-items: end; gap: 8px; }
.connection-box label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.connection-box input { width: 170px; padding: 8px 10px; color: var(--text); background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.connection-box label:nth-child(2) input { width: 150px; }
.content { max-width: 1420px; margin: 0 auto; padding: 34px 42px 60px; }
.page-intro, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.page-intro p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.section-heading { margin-top: 36px; margin-bottom: 14px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-card { position: relative; overflow: hidden; min-height: 128px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(34, 58, 82, .045); }
.stat-card::after { content: ""; position: absolute; right: -16px; bottom: -25px; width: 86px; height: 86px; border-radius: 50%; opacity: .1; }
.accent-blue { border-top: 3px solid var(--blue); }.accent-blue::after { background: var(--blue); }
.accent-teal { border-top: 3px solid var(--teal); }.accent-teal::after { background: var(--teal); }
.accent-purple { border-top: 3px solid var(--purple); }.accent-purple::after { background: var(--purple); }
.accent-orange { border-top: 3px solid var(--orange); }.accent-orange::after { background: var(--orange); }
.stat-label, .stat-note { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin: 8px 0 3px; color: var(--text); font-size: 31px; letter-spacing: -.04em; }
.stat-note { font-size: 11px; }
.button { border: 0; border-radius: 9px; padding: 11px 16px; font-weight: 750; font-size: 13px; transition: .18s ease; }
.button.primary { color: #fff; background: var(--teal); box-shadow: 0 6px 14px rgba(35, 142, 139, .2); }
.button.primary:hover { background: #1d7775; transform: translateY(-1px); }
.button.ghost { color: var(--navy-2); background: #eef3f7; }.button.ghost:hover { background: #e2eaf0; }
.table-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(34, 58, 82, .04); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 16px 18px; border-bottom: 1px solid #edf1f5; white-space: nowrap; font-size: 13px; }
th { color: var(--muted); background: #fbfcfd; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfdfd; }
.tenant-name { display: flex; align-items: center; gap: 10px; }
.tenant-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #267f7d; background: var(--teal-soft); font-weight: 800; }
.tenant-name strong, .tenant-name span { display: block; }.tenant-name span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.table-subtext { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; color: #267f7d; background: var(--teal-soft); font-size: 11px; font-weight: 750; }
.pill.neutral { color: #68778a; background: #eef2f5; }.pill.warning { color: #9c651a; background: #fff2db; }
.table-action { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy-2); background: #fff; font-size: 11px; font-weight: 750; }
.table-action:hover { border-color: var(--teal); color: var(--teal); }
.row-actions { display: flex; gap: 6px; }
.empty-cell { padding: 35px 18px; color: var(--muted); text-align: center; }
.application-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.application-card, .empty-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(34, 58, 82, .04); }
.application-card { display: flex; flex-direction: column; min-height: 170px; }
.application-card .app-symbol { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--teal)); font-weight: 800; }
.application-card h3 { margin: 0 0 5px; font-size: 17px; }.application-card p { min-height: 36px; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }.application-meta { display: flex; justify-content: space-between; margin-top: auto; color: var(--muted); font-size: 11px; }
.large-empty { min-height: 310px; display: grid; place-items: center; align-content: center; text-align: center; }.empty-icon { display: block; color: var(--teal); font-size: 42px; }.large-empty p { max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.status-banner { margin-bottom: 18px; padding: 12px 15px; border: 1px solid #f4c9c9; border-radius: 10px; color: var(--danger); background: #fff3f3; font-size: 13px; }.status-banner.success { color: #237b60; border-color: #bde6d4; background: #effbf6; }
.hidden { display: none !important; }.view { display: none; }.view.active { display: block; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 35, 53, .58); backdrop-filter: blur(3px); }.modal-card { position: relative; z-index: 1; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; gap: 15px; padding: 25px; border-radius: 18px; background: #fff; box-shadow: 0 25px 70px rgba(15, 31, 48, .25); }.modal-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 5px; }.modal-header h2 { margin: 0; }.icon-button { width: 32px; height: 32px; border: 0; border-radius: 8px; color: var(--muted); background: #f0f3f6; font-size: 22px; line-height: 1; }.modal-card label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }.modal-card input, .modal-card select, .modal-card textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #fbfcfd; outline: 0; }.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35, 142, 139, .12); }.modal-card small, .modal-description { color: var(--muted); font-size: 11px; font-weight: 400; }.modal-actions { display: flex; justify-content: end; gap: 8px; margin-top: 7px; }.access-list { display: grid; gap: 8px; }.access-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }.access-item strong, .access-item span { display: block; }.access-item span { margin-top: 3px; color: var(--muted); font-size: 11px; }.switch { position: relative; width: 42px; height: 24px; }.switch input { position: absolute; opacity: 0; }.slider { position: absolute; inset: 0; cursor: pointer; border-radius: 99px; background: #cbd5df; transition: .2s; }.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }.switch input:checked + .slider { background: var(--teal); }.switch input:checked + .slider::before { transform: translateX(18px); }
@media (max-width: 1080px) { .topbar { align-items: start; flex-direction: column; }.connection-box { width: 100%; flex-wrap: wrap; }.application-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .sidebar { width: 72px; flex-basis: 72px; padding: 20px 10px; }.brand { justify-content: center; padding: 0 0 28px; }.brand > div:last-child, .nav-item span:last-child, .sidebar-footer span:last-child { display: none; }.nav-item { justify-content: center; padding: 13px 0; }.sidebar-footer { justify-content: center; padding-left: 0; padding-right: 0; }.topbar, .content { padding-left: 20px; padding-right: 20px; }.stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .connection-box { display: grid; grid-template-columns: 1fr 1fr; }.connection-box label input, .connection-box label:nth-child(2) input { width: 100%; }.connection-box .button { grid-column: span 2; }.page-intro { align-items: start; flex-direction: column; }.stat-grid, .application-grid { grid-template-columns: 1fr; }.stat-card { min-height: 110px; } }
