*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --surface:  #f7f6f3;
  --border:   #e9e9e7;
  --text:     #191919;
  --text-2:   #6b6b6b;
  --text-3:   #9b9a97;
  --hover-bg: #f1f1ef;
  --accent:   #191919;
  --radius:   6px;
  --tr:       0.2s ease;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 14px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.sidebar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1.3;
}

.sidebar-sub {
  font-size: 11px;
  color: var(--text-3);
  display: block;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0 8px 10px;
}

nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
  transition: background var(--tr), color var(--tr);
  position: relative;
}

.nav-link:hover { background: var(--hover-bg); color: var(--text); }

.nav-link.active {
  background: var(--hover-bg);
  color: var(--text);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 3px;
  background: var(--text);
  border-radius: 3px;
}

.main-content { flex: 1; min-width: 0; }

.page-wrap {
  max-width: 780px;
  padding: 48px 52px 80px;
}

.page-heading {
  margin-bottom: 6px;
}

h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.page-meta {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0 32px;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}

h2:first-of-type { margin-top: 0; }

p { color: var(--text-2); margin-bottom: 10px; }

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 12px 0 20px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  overflow-x: auto;
}

.output-block {
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-2);
}

.output-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 8px;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}

th {
  background: var(--surface);
  padding: 9px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

tr:hover td { background: var(--surface); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
  max-width: 320px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(25,25,25,0.07);
}

button, input[type="submit"] {
  padding: 9px 22px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity var(--tr), transform var(--tr);
}

button:hover, input[type="submit"]:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.result-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-2);
}

.result-box strong { color: var(--text); }

.mult-table td, .mult-table th {
  text-align: center;
  min-width: 44px;
  padding: 8px;
  font-size: 13px;
}

.mult-table .highlight { background: #f0f0f0; font-weight: 600; color: var(--text); }
.mult-table .cell-zero { color: var(--text-3); }

.info-box {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.site-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* ====== NEW DESIGN: DevOps Terminal ====== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
:root { --bg:#070b09; --surface:#0d1512; --surface-2:#13201b; --border:#1f3a2e; --text:#e8fff1; --text-2:#a3c2b1; --text-3:#6b8f7c; --hover-bg:#172a22; --accent:#22c55e; --accent-2:#38bdf8; --grad:linear-gradient(135deg,#22c55e,#38bdf8); --radius:12px; }
body { font-family:'Space Grotesk','Inter',sans-serif; background: radial-gradient(900px 500px at 85% -10%, rgba(34,197,94,.22), transparent 60%), radial-gradient(700px 500px at 0% 110%, rgba(56,189,248,.12), transparent 60%), var(--bg); background-attachment:fixed; }
.sidebar { background:rgba(13,21,18,.85); backdrop-filter:blur(10px); }
.sidebar-avatar { background:var(--grad); color:#070b09; border-radius:10px; }
.nav-link { border-radius:10px; }
.nav-link:hover { color:var(--accent-2); }
.nav-link.active { background:linear-gradient(90deg,rgba(34,197,94,.28),rgba(56,189,248,.06)); color:#fff; }
.nav-link.active::before { background:var(--grad); }
h1 { background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
h2 { color:var(--accent-2); }
.divider { height:2px; background:linear-gradient(90deg,var(--accent),transparent); }
.code-block { background:#050806; color:#86efac; border-radius:12px; font-family:'JetBrains Mono',monospace; }
.output-block { background:var(--surface); border-left-color:var(--accent-2); color:var(--text-2); }
table { background:var(--surface); }
th { background:var(--surface-2); color:var(--accent-2); }
tr:hover td { background:var(--hover-bg); }
input[type="text"],input[type="number"],input[type="email"],select,textarea { background:var(--surface); color:var(--text); border-radius:10px; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(34,197,94,.3); }
button,input[type="submit"] { background:var(--grad); color:#070b09; border-radius:10px; font-weight:700; }
.result-box,.info-box { background:var(--surface); border-left:3px solid var(--accent-2); }
.result-box[style*="#c0392b"] { background:rgba(248,113,113,.1) !important; border-left-color:#f87171 !important; }
.result-box[style*="#27ae60"] { background:rgba(74,222,128,.1) !important; border-left-color:#4ade80 !important; }
.mult-table .highlight { background:rgba(34,197,94,.35); color:#fff; }
.site-footer { color:var(--text-3); }a { text-decoration:none; } a:hover { color:var(--accent-2); }
