/* ============================================================================
   chmod-calc.css — Tool-spezifische Styles für CHMOD CALC
   Geladen auf: tools/chmod-calc.php  (NACH main-vhc.css)
   ============================================================================ */

/* ── Seitenbereich ───────────────────────────────── */

body.tool-page main {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px 52px;
}

/* ── Tool-Header ─────────────────────────────────── */

.cc-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.cc-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 24px rgba(0, 245, 255, 0.35));
}

.cc-title {
  font-family: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--neon1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
  margin: 0 0 0.5rem 0;
}

.cc-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
}

/* ── Tool-Wrapper ────────────────────────────────── */

.tool-wrap {
  width: 100%;
  max-width: 680px;
}

/* ── Berechtigungs-Matrix ────────────────────────── */

.cc-matrix {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
}

.cc-matrix th,
.cc-matrix td {
  border: 1px solid #1a2840;
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.cc-matrix thead th {
  background: #0c1220;
  color: var(--neon1);
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.cc-matrix tbody th {
  background: #0c1220;
  color: var(--text);
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem;
  text-align: left;
  padding-left: 0.9rem;
  white-space: nowrap;
}

.cc-matrix tbody th small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.cc-chk {
  accent-color: var(--neon1);
  cursor: pointer;
  width: 20px;
  height: 20px;
}

/* ── Spezial-Bits ────────────────────────────────── */

.cc-special {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  justify-content: center;
  padding: 0.9rem 1rem;
  margin-bottom: 1.4rem;
  background: #090f1c;
  border: 1px solid #1a2840;
  border-radius: 2px;
}

.cc-special label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #a0b8cc;
  cursor: pointer;
  user-select: none;
}

.cc-special input[type="checkbox"] {
  accent-color: var(--neon1);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* ── Werte-Zeile (Oktal + Symbolisch) ────────────── */

.cc-values {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.cc-field {
  flex: 1;
  min-width: 200px;
}

.cc-field-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.cc-octal-input {
  width: 100%;
  background: #0c1220;
  border: 1px solid #1a2840;
  color: var(--neon1);
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 0.55rem 0.6rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.cc-octal-input:focus {
  border-color: var(--neon1);
}

.cc-symbolic {
  background: #0c1220;
  border: 1px solid #1a2840;
  color: var(--neon4);
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 0.6rem;
  border-radius: 2px;
}

/* ── chmod-Befehl ────────────────────────────────── */

.cc-cmd-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.cc-file-input {
  flex: 0 0 auto;
  width: 160px;
  background: #0c1220;
  border: 1px solid #1a2840;
  color: var(--text);
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.85rem;
  padding: 0.5rem 0.7rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.cc-file-input:focus {
  border-color: var(--neon1);
}

.cc-cmd {
  flex: 1;
  min-width: 200px;
  background: #090f1c;
  border: 1px solid #1a2840;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 2px;
  word-break: break-all;
}

.cc-cmd .cc-cmd-octal {
  color: var(--neon1);
}

/* ── Kopieren-Button (aus roman-conv übernommen) ─── */

.copy-btn {
  background: none;
  border: 1px solid #2e4a72;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  border-color: var(--neon1);
  color: var(--neon1);
}

.copy-btn.copied {
  border-color: var(--neon4);
  color: var(--neon4);
}

/* ── Häufige Muster ──────────────────────────────── */

.cc-patterns-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.cc-patterns {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cc-pattern {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  background: #090f1c;
  border: 1px solid #1a2840;
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  transition: border-color 0.2s, background 0.2s;
}

.cc-pattern:hover {
  border-color: var(--neon1);
  background: #0d1a28;
}

.cc-pattern-octal {
  color: var(--neon1);
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: 0.95rem;
  min-width: 3rem;
}

.cc-pattern-desc {
  color: #a0b8cc;
  font-size: 0.82rem;
}

/* ── Responsiv ───────────────────────────────────── */

@media (max-width: 560px) {
  .cc-matrix th,
  .cc-matrix td { padding: 0.5rem 0.3rem; }
  .cc-matrix tbody th { font-size: 0.74rem; padding-left: 0.5rem; }
  .cc-file-input { width: 100%; }
}
