/*
 * Главный файл стилей KIT — финальный чистый вариант
 * Совместим с Tailwind, Highlight.js и всеми render-блоками
 */

/* -----------------------------
   Глобальное оформление
------------------------------ */
body {
  background: #0f172a;
  color: #e2e8f0;
  font-family: system-ui, sans-serif;
}

/* -----------------------------
   Карточки инструментов
------------------------------ */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.card.active {
  border-color: #06b6d4;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

/* -----------------------------
   Стекло-эффект
------------------------------ */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

/* -----------------------------
   Панель результатов
------------------------------ */
#toolResult {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  pointer-events: none;
}

#toolResult.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* -----------------------------
   PING-блок
------------------------------ */
.ping-block {
  white-space: pre-line;
  background: #0f172a;
  padding: 10px;
  border-radius: 6px;
  color: #e2e8f0;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  border-left: 3px solid #38bdf8;
}

.ping-icmp { color:#4FC1FF; font-weight:600; }
.ping-ttl  { color:#C586C0; font-weight:600; }
.ping-time { color:#B5CEA8; font-weight:700; }
.ping-host { color:#569CD6; font-weight:700; }

.ping-pre {
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  margin-top: 10px;
  color: #e2e8f0;
}


/* -----------------------------
   IP-карточка (корректная, без свечения)
------------------------------ */
.ip-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

/* -----------------------------
   KIT-CLI — вывод текста (исправлено)
------------------------------ */
.kit-cli {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.3;
  color: #e2e8f0;

  /* ВАЖНО: нормальный HTML-рендер */
  white-space: normal;
}

.kit-key {
  width: 150px;
  color: #60a5fa;
  font-weight: 600;
  flex-shrink: 0;
}

.kit-value {
  color: #e2e8f0;
  font-weight: 500;
  word-break: break-word;
}

.ip-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4px;
  line-height: 1.3;
}

/* -----------------------------
   Подсветка значений
------------------------------ */
.hl-ip {
  color: #38bdf8;
  font-weight: 700;
}

.hl-country {
  color: #2dd4bf;
  font-weight: 600;
}

.hl-provider {
  color: #c084fc;
  font-weight: 600;
}

/* -----------------------------
   Кнопки
------------------------------ */
.grad {
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
}

/* -----------------------------
   JSON fallback
------------------------------ */
#jsonContainer pre {
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.55;
  color: #e2e8f0;
}



/* -----------------------------
   DNS првоерка 
------------------------------ */
.dns-domain {
    color: #38bdf8;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}

.dns-block {
    margin-bottom: 10px;
}

.dns-title {
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 4px;
}

.dns-value {
    margin-left: 16px;
    line-height: 1.25;
}

.dns-list div {
    margin-bottom: 2px;
}

/* Цвета спокойные */
.dns-ip    { color: #38bdf8; }
.dns-ipv6  { color: #7dd3fc; }
.dns-mx    { color: #c084fc; }
.dns-ns    { color: #5eead4; }
.dns-txt   { color: #a3e635; }
.dns-cname { color: #f472b6; }

/* -----------------------------
   ssl првоерка 
------------------------------ */
.ssl-exp-ok {
    color: #34d399;
    font-weight: 600;
}

.ssl-exp-bad {
    color: #f87171;
    font-weight: 700;
}

.ssl-date {
    color: #93c5fd;
}

.ssl-badge {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.ssl-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.ssl-bad {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
.ssl-chain-item {
    border-left: 3px solid #34d399;
    margin: 10px 0;
    padding: 8px 12px;
    line-height: 1.45;
}

.ssl-error-title {
    color: #f87171;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 15px;
}

.ssl-error-text {
    color: #fca5a5;
    margin-bottom: 4px;
}

.ssl-error-help {
    color: #94a3b8;
    font-size: 13px;
}

.ssl-expired-badge {
    background: rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    padding: 8px 12px;
    color: #ef4444;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.ssl-error-block {
    border-left: 3px solid #ef4444;
}

.ssl-error-title {
    color: #f87171;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15px;
}

.ssl-expired-row {
    margin-top: 6px;
    color: #fca5a5;
    font-weight: 600;
}

.status-ok {
  color: #22c55e;   /* зелёный */
  font-weight: 700;
}

.status-expired {
  color: #ef4444;   /* красный */
  font-weight: 700;
}

.status-redemption {
  color: #f97316;   /* оранжевый */
  font-weight: 700;
}

.status-available {
  color: #38bdf8;   /* голубой */
  font-weight: 700;
}

.http-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.http-key {
    width: 170px;
    color: #94a3b8;
    padding: 6px 0;
    vertical-align: top;
    font-weight: 500;
}

.http-val {
    color: #e2e8f0;
    padding: 6px 0;
    word-break: break-word;
}

/* headers separator */
.http-sep {
    padding-top: 14px;
    padding-bottom: 6px;
    color: #64748b;
    font-weight: 600;
}

/* статус */
.http-status {
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.http-ok { background:#16a34a33; color:#22c55e; }
.http-redirect { background:#eab30833; color:#facc15; }
.http-client-error { background:#dc262633; color:#f87171; }
.http-server-error { background:#991b1b33; color:#fca5a5; }
.http-unknown { background:#6b728033; color:#9ca3af; }



.dns-list div {
    margin-bottom: 2px;
}


/* check ip */
.kit-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.row-icon {
    width: 18px;
    height: 18px;
    margin-right: 14px;
    color: #4f8cff;
}

.row-key {
    width: 180px;
    font-weight: 500;
    color: #94a3b8;
}

.row-val {
    font-family: ui-monospace, monospace;
    color: #7DD3FC !important;   /* sky-300 */
    font-size: 14px;
}

