/* public/css/style.css */

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: black;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eee;
}

body {
  display: flex;
  flex-direction: column;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.app-header {
  padding: 8px 12px;
  background: #111;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-header h1 {
  margin: 0;
  font-size: 16px;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.controls-row label {
  font-size: 12px;
}

.controls-row select,
.controls-row input[type="range"],
.controls-row button {
  font-size: 12px;
}

/* Area ASCII */

/* Area ASCII */

.ascii-container {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: #000;

  /* ✅ FONDAMENTALE */
  width: 100%;
  height: 100%;
}

.ascii-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* ✅ FONDAMENTALE */
  width: 100%;
  height: 100%;
  position: relative;
}

.ascii-pre {
  margin: 0;
  white-space: pre;
  font-family: "Consolas", "Courier New", monospace;
  line-height: 1;
  background: #000;
  color: #0f0;

  /* ✅ CENTRATURA + LETTERBOX */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


/* Barra comandi viewer auto-hide */

.app-header.hidden {
  display: none;
}

/* Sender textarea */

.sender-textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: none;
  outline: none;
  padding: 8px;
  background: #000;
  color: #0f0;
  font-family: "Consolas", "Courier New", monospace;
  white-space: pre;
  line-height: 1;
}

/* Pulsanti */

button {
  cursor: pointer;
}

.audio-indicator {
  margin-left: 8px;
  font-size: 0.9rem;
}

.audio-indicator.audio-on {
  color: rgb(168, 168, 168);
}

.audio-indicator.audio-off {
  color: #777;
}
