html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
  background: #16171a;
  color: #d9e0ee;
}

body {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered-container {
  width: 99vw;
  max-width: 1080px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
}

.input-row {
  width: 100%;
  max-width: 1080px;
  min-width: 220px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(6px, 2vw, 18px);
  background: transparent;
  padding: 20px 16px 12px 16px;
  border-radius: 13px;
  box-sizing: border-box;
  row-gap: 12px;
}

.input-row label {
  color: #abafd7;
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  font-weight: 500;
  margin-right: 4px;
  margin-left: 8px;
  margin-bottom: 0;
  letter-spacing: 0.2px;
  white-space: nowrap;
  align-self: center;
}

.input-row select, .input-row input[type="text"] {
  background: #202126;
  color: #e6e9ef;
  border: 1.5px solid #292c32;
  border-radius: 8px;
  font-size: clamp(0.97rem, 2vw, 1.08rem);
  outline: none;
  padding: 9px 14px;
  min-width: 110px;
  width: clamp(100px, 18vw, 180px);
  max-width: 220px;
  transition: border 0.22s, font-size 0.15s;
  margin-right: 6px;
  margin-left: 0;
  box-shadow: 0 1px 8px #10101444 inset;
  flex: 1 1 120px;
  align-self: center;
}
.input-row select:focus, .input-row input[type="text"]:focus {
  border-color: #7fafff;
}

#runBtn {
  padding: 11px 20px;
  background: linear-gradient(90deg, #3b82f6 0%, #4f46e5 100%);
  color: #fff;
  font-size: clamp(1.00rem, 2vw, 1.10rem);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #00000030;
  margin-left: 10px;
  transition: background 0.2s;
  align-self: center;
  flex: 0 0 auto;
}
#runBtn:hover {
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
}

.console-panel {
  width: 100%;
  max-width: 900px;
  border-radius: 17px;
  box-sizing: border-box;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  background: none;
  /* Shadow hanya di panel utama */
  box-shadow: 0 8px 32px 0 #00000033;
}

.console-macos-header {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 22px;
  background: #181a1e;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.console-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #222a;
}
.console-dot.red {
  background: #ff5f56;
}
.console-dot.yellow {
  background: #ffbd2e;
}
.console-dot.green {
  background: #27c93f;
}
.console-title {
  margin-left: 20px;
  color: #d6deffcc;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1.08rem;
  user-select: none;
}

.console-body {
  background: #101014;
  color: #6bf88f;
  font-size: clamp(0.97rem, 2vw, 1.08rem);
  padding: 20px 25px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
  border: none;
  margin: 0;
  width: 100%;
  min-height: 120px;
  max-height: 320px;
  overflow-x: auto;
  overflow-y: auto;
  box-sizing: border-box;
  white-space: pre-wrap;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
  transition: color 0.15s, background 0.15s;
}

.console-body::-webkit-scrollbar {
  width: 9px;
  background: #23252a;
}
.console-body::-webkit-scrollbar-thumb {
  background: #353740;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .centered-container {
    width: 99vw;
    max-width: 100vw;
    padding: 0 0;
    gap: 16px;
  }
  .input-row {
    flex-wrap: wrap;
    gap: 11px;
    padding: 14px 5px 7px 5px;
  }
  .console-panel {
    max-width: 100vw;
    margin-top: 0;
  }
  .console-macos-header {
    border-radius: 13px 13px 0 0;
    height: 30px;
    padding: 0 9px;
    font-size: 1.0rem;
  }
  .console-body {
    min-height: 75px;
    max-height: 22vh;
    font-size: 0.95rem;
    padding: 9px 4px;
    border-radius: 0 0 13px 13px;
  }
  #runBtn {
    margin-top: 10px;
    width: auto;
    min-width: 90px;
    padding: 8px 12px;
  }
  .input-row select, .input-row input[type="text"] {
    min-width: 80px;
    width: clamp(68px, 19vw, 130px);
    max-width: 150px;
    font-size: 0.95rem;
    padding: 7px 8px;
  }
}

@media (max-width: 600px) {
  .input-row label {
    font-size: 0.94rem;
  }
  .input-row select, .input-row input[type="text"] {
    min-width: 63px;
    width: clamp(50px, 21vw, 99px);
    max-width: 99px;
    font-size: 0.92rem;
    padding: 6px 5px;
  }
  .console-body {
    padding: 6px 2px;
    font-size: 0.89rem;
  }
}
