:root {
  --bg: #f0f2f5;
  --fg: #333;
  --muted: #666;
  --accent: #0066cc;
  --error: #e55353;
  --card-bg: #ffffff;
  --code-bg: #f3f7fa;
  --shadow: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  --bg: #121212;
  --fg: #e0e0e0;
  --muted: #9aa0a6;
  --accent: #4ea1ff;
  --error: #ff6b6b;
  --card-bg: #1e1e1e;
  --code-bg: #0f172a;
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, sans-serif, Helvetica, Arial, tahoma;
  background-color: var(--bg);
  color: var(--fg);
  font-size: 12px;
  margin-top: 40px;
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  margin-bottom: 15px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
  color: inherit;
}

.radio-group label {
  display: flex;
  align-items: center;
}

.radio-group input[type="radio"] {
  margin-right: 10px;
}

label {
  color: inherit;
  display: flex;
  align-items: center;
}

input,
textarea {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.new {
  background-color: #fff;
  color: #4f5b66;
}

.input-error {
  border: 2px solid red;
}

button {
  background: var(--accent);
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 3px;
  transition: filter 0.15s ease-in-out;
}

button:hover {
  filter: brightness(0.95);
}

#box {
  margin-left: auto;
  margin-right: auto;
  -moz-box-shadow: 0 0 20px var(--shadow);
  -webkit-box-shadow: 0 0 20px var(--shadow);
  box-shadow: 0 0 20px var(--shadow);
  padding: 20px;
  width: 670px;
  background-color: var(--card-bg);
  color: var(--fg);
  border-radius: 10px;
}

.title {
  text-align: center;
  color: var(--fg);
  font-size: 18px;
  margin-bottom: 20px;
}

#input_form {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  max-width: 600px;
}

.tooltip {
  margin-left: 5px;
  position: relative;
  cursor: pointer;
  color: #8a8a8a;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #f9f9f9;
  color: #333;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: Arial, sans-serif;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.record-output {
  color: var(--fg);
  margin-top: 20px;
  margin-bottom: 20px;
}

.record-output pre {
  background-color: var(--code-bg);
  color: var(--fg);
  padding: 10px;
  border-radius: 5px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#sponsor {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.error {
  color: var(--error);
}
