/* EPP Arcmedia — Custom Stylesheet */

:root {
  --epp-primary: #0d6efd;
  --epp-bg: #f8f9fa;
  --epp-card-shadow: 0 2px 8px rgba(0,0,0,.1);
}

body {
  background-color: var(--epp-bg);
  font-size: 0.9rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar-brand { font-size: 1.1rem; letter-spacing: .5px; }

/* Cards */
.card {
  border: none;
  box-shadow: var(--epp-card-shadow);
  border-radius: 8px;
}
.card-header {
  border-radius: 8px 8px 0 0 !important;
  font-weight: 600;
}

/* Result panels */
.result-panel {
  border-left: 4px solid var(--epp-primary);
  background: #fff;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  box-shadow: var(--epp-card-shadow);
}
.result-panel.success { border-left-color: #198754; }
.result-panel.error   { border-left-color: #dc3545; }
.result-panel.warning { border-left-color: #ffc107; }

/* EPP code blocks */
.xml-code {
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Domain availability badges */
.avail-yes { color: #198754; font-weight: 700; }
.avail-no  { color: #dc3545; font-weight: 700; }

/* Table */
.table-hover tbody tr:hover { background-color: rgba(13,110,253,.05); }
.table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .5px; }

/* Sidebar form groups */
.form-label { font-weight: 500; font-size: 0.83rem; }

/* Status badges */
.badge { font-weight: 500; font-size: 0.75rem; }

/* Dashboard stat cards */
.stat-card {
  border-radius: 12px;
  padding: 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card .stat-icon {
  font-size: 3rem;
  opacity: .25;
  position: absolute;
  right: 1rem;
  top: .5rem;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: .8rem; opacity: .85; margin-top: .25rem; }

/* Login page */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
}
.login-card { width: 100%; max-width: 420px; border-radius: 16px; }

/* Spinner overlay */
.spinner-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  gap: 1rem;
}
.spinner-overlay.show { display: flex; }

/* EPP session bar */
.epp-session-bar {
  background: #e8f4e8;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: .5rem 1rem;
  margin-bottom: 1rem;
  font-size: .85rem;
}

/* Nameserver list */
.ns-list .ns-item {
  display: flex; align-items: center;
  gap: .5rem; margin-bottom: .5rem;
}
.ns-list .ns-item input { flex: 1; }

/* Contact type colors */
.contact-registrant { border-left: 3px solid #0d6efd; }
.contact-admin      { border-left: 3px solid #198754; }
.contact-tech       { border-left: 3px solid #6f42c1; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .stat-card .stat-value { font-size: 1.5rem; }
  .container-fluid { padding-left: 1rem; padding-right: 1rem; }
}

/* Poll message severity */
.poll-low    { border-left: 4px solid #0d6efd; }
.poll-medium { border-left: 4px solid #ffc107; }
.poll-high   { border-left: 4px solid #dc3545; }

/* Log table XML button */
.btn-xml { font-size: .75rem; padding: .15rem .5rem; }

/* Footer */
.footer { margin-top: auto; }

/* Scrollable result table */
.table-scroll { max-height: 400px; overflow-y: auto; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,122,24,.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0,169,157,.18), transparent 32%),
    #f6f7fb;
  color: #16202a;
}
a { color: #0057b8; text-decoration: none; }
code, pre { font-family: ui-monospace, SFMono-Regular, monospace; }
pre {
  white-space: pre-wrap;
  background: #0f1720;
  color: #dce6f6;
  padding: 1rem;
  border-radius: 18px;
  max-height: 420px;
  overflow: auto;
}
.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
  padding: 2rem 1.2rem;
  background: linear-gradient(180deg, #0f1720, #1a2430 60%, #25313e);
  color: #fff;
}
.brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.brand p { margin: 0; color: rgba(255,255,255,.66); }
.brand-mark {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff7a18, #ffb74d);
  color: #16202a; font-weight: 700;
}
.nav { display: grid; gap: .5rem; }
.nav a {
  padding: .9rem 1rem;
  color: #eef3fa;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.nav a:hover { background: rgba(255,255,255,.1); }
.main { padding: 2rem; }
.topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.topbar h1 { margin: 0 0 .25rem; font-size: 2rem; }
.topbar p { margin: 0; color: #617082; }
.chip-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip {
  padding: .6rem .9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(15,23,32,.08);
}
.chip-success { background: #dcfce7; color: #166534; }
.chip-warning { background: #fff7cc; color: #92400e; }
.alert {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 35px rgba(15,23,32,.06);
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fff7cc; color: #92400e; }
.panel, .stat-card, .hero-panel {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 16px 48px rgba(15,23,32,.08);
}
.panel-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat-card strong { display: block; font-size: 2rem; }
.stat-card span, .muted { color: #617082; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.compact { gap: .85rem; }
.form-grid label span { display: block; margin-bottom: .35rem; font-size: .92rem; color: #435266; }
input, textarea, select, button {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 16px;
  padding: .92rem 1rem;
  font: inherit;
  background: #fff;
}
button { cursor: pointer; }
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  border: 0; background: #dbe4f0; color: #16202a;
}
.btn-ghost { background: rgba(0,87,184,.08); color: #0057b8; }
.btn-sm { padding: .65rem .8rem; border-radius: 12px; font-size: .88rem; }
.btn-primary { background: linear-gradient(135deg, #0057b8, #00796b); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #b42318, #e35d5b); color: #fff; }
.inline-form { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.inline-form input, .inline-form select, .inline-form button { width: auto; flex: 1 1 180px; }
.inline-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-actions .btn, .inline-actions a.btn { width: auto; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem .7rem; border-bottom: 1px solid #e6ecf5; text-align: left; vertical-align: top; }
.list { margin: 0; padding-left: 1rem; display: grid; gap: .75rem; }
.toolbar { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar a {
  padding: .72rem .92rem;
  border-radius: 14px;
  background: rgba(0,87,184,.08);
  color: #0c4a6e;
  font-weight: 500;
}
.toolbar a.is-active {
  background: linear-gradient(135deg, #0057b8, #00796b);
  color: #fff;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .85rem;
}
.section-title h3, .section-title h4 { margin: 0; }
.helper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: .85rem 0 1rem;
}
.helper-card {
  padding: .95rem 1rem;
  border-radius: 18px;
  background: rgba(0,87,184,.05);
  border: 1px solid rgba(0,87,184,.08);
}
.helper-card strong {
  display: block;
  margin-bottom: .35rem;
}
.helper-card p {
  margin: 0;
  color: #5b6678;
  font-size: .92rem;
}
.field-grid-2, .field-grid-3 {
  display: grid;
  gap: .85rem;
}
.field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.status-pass, .status-skip, .status-fail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
}
.status-pass { background: #dcfce7; color: #166534; }
.status-skip { background: #fff7cc; color: #92400e; }
.status-fail { background: #fee2e2; color: #991b1b; }
.mono { font-family: ui-monospace, SFMono-Regular, monospace; }
.stack { display: grid; gap: .35rem; }
.pill-list { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill {
  padding: .3rem .6rem;
  border-radius: 999px;
  background: #eef4fb;
  color: #23415f;
  font-size: .82rem;
}
.login-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: stretch; }
.hero-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,87,184,.9), rgba(0,121,107,.86)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='rgba(255,255,255,.15)'%3E%3Ccircle cx='120' cy='120' r='100'/%3E%3Ccircle cx='620' cy='240' r='180'/%3E%3Ccircle cx='300' cy='560' r='220'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
}
.hero-panel h2 { font-size: 2.4rem; margin: .2rem 0 1rem; max-width: 12ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; opacity: .8; }
.checkbox { display: flex; align-items: center; gap: .75rem; }
.checkbox input { width: auto; }
.timeline { margin: 0; padding-left: 1rem; display: grid; gap: .7rem; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { padding-bottom: 1rem; }
  .stats-grid, .two-col, .login-card { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; }
  .helper-grid, .field-grid-2, .field-grid-3 { grid-template-columns: 1fr; }
}
