/* =========================================
   ULTRA SMOOTH — Border-Only + OnePlus Sans
   ========================================= */

/* Import OnePlus Sans (lightweight font) */
@import url('https://fonts.cdnfonts.com/css/oneplus-sans');

:root {
  --bg: #0d1117;
  --text: #e6edf3;
  --muted: #9aa7b2;
  --accent: #8fb3ff;
  --panel-border: rgba(255,255,255,.10);
  --radius: 12px;
}

/* Base setup */
body {
  margin: 0;
  font-family: 'OnePlus Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  transition: background-color .2s ease;
}

/* Transparent container elements */
.glass,
.card,
.progress-bar-container,
.textarea-container,
.line-numbers,
#forwarderResult,
select,
input[type="text"],
textarea {
  background: transparent !important;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: none !important;
}

/* Tables and cards also transparent */
.table, table {
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

/* Buttons */
.btn-outline-light,
.black-vatican {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: .6rem .95rem;
  font-family: 'OnePlus Sans', system-ui;
  font-weight: 600;
  text-transform: uppercase;
}
.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.black-vatican:hover {
  border-color: var(--accent);
}

/* Card headers */
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--panel-border);
  color: var(--accent);
  font-family: 'OnePlus Sans', system-ui;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Inputs and selects */
select, input[type="text"], textarea {
  font-family: 'OnePlus Sans', system-ui;
  color: var(--text);
  border-radius: var(--radius);
  padding: .5rem .7rem;
}
select:focus, input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Range sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 6px;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

/* Progress bars */
.progress-bar {
  background: var(--accent);
  border-radius: 999px;
  height: 8px;
  width: 0%;
  transition: width .3s ease;
}

/* Badges */
.badge {
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: .25rem .55rem;
  color: var(--text);
  font-family: 'OnePlus Sans', system-ui;
  font-size: 0.85em;
  text-transform: uppercase;
}

/* Links */
a { color: var(--accent); text-decoration: none; font-family: 'OnePlus Sans', system-ui; }
a:hover { color: #bcd3ff; }

/* Image */
img { width: 60%; display: block; margin: auto; border-radius: var(--radius); }

/* Remove all animation-heavy features */
#matrix-canvas, body::after { display: none !important; content: none !important; }

/* Disable heavy transitions globally */
*, *::before, *::after {
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
  box-shadow: none !important;
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* === PATCH: OnePlus Sans + Reinstate Perimeters (borders) === */

/* 1) Load OnePlus Sans */
@import url('https://fonts.cdnfonts.com/css/oneplus-sans');

/* 2) Apply the font globally (and to form controls) */
html, body,
button, input, select, textarea,
.card, .badge, .table, table, th, td {
  font-family: 'OnePlus Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial !important;
}

/* 3) Make sure border variable exists and is visible */
:root {
  --panel-border: rgba(255,255,255,.12); /* increases contrast just a touch */
}

/* 4) Reinstate/ensure perimeters (no background changes) */
.glass, .card,
.progress-bar-container,
.textarea-container,
.line-numbers,
#forwarderResult,
.table, table, th, td,
select, input[type="text"], textarea {
  border: 1px solid var(--panel-border) !important;
  border-radius: var(--radius, 12px);
  background: transparent !important; /* keeps the “clear” look */
  box-shadow: none !important;
}

/* Optional: make table gridlines consistently visible */
table { border-collapse: separate; border-spacing: 0; }
th, td { border-width: 1px; }

/* Keep sliders consistent with visible perimeter */
input[type="range"]{
  border: 1px solid var(--panel-border) !important;
}