:root[data-bs-theme='light'] {
  --bs-body-bg: #ffffff;
  --bs-body-color: #212529;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.1);
  --bs-heading-color: #000;
  --bs-secondary-bg: #f8f9fa;
  --bs-secondary-color: #6c757d;
  --bs-primary: #0d6efd;
}

:root[data-bs-theme='dark'] {
  --bs-body-bg: #121212;
  --bs-body-color: #f1f1f1;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.1);
  --bs-heading-color: #ffffff;
  --bs-secondary-bg: #1e1e1e;
  --bs-secondary-color: #bbbbbb;
  --bs-primary: #0d6efd;
}

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding-top: 6rem;
  padding-bottom: 4rem;
  transition: background-color 0.3s, color 0.3s;
}

textarea {
  border: 2px solid;
  caret-color: auto;
  resize: none;
}

.navbar {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-bottom: 1px solid var(--bs-border-color-translucent);
  min-height: 80px;
  padding: 0.75rem 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.navbar-brand {
  color: var(--bs-body-color);
}

.btn,
.form-control,
textarea {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color-translucent);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.form-control:focus,
textarea:focus {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
  border-color: var(--bs-border-color-translucent);
  color: var(--bs-body-color);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
  background-color: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}

#insightsSummary {
  max-width: 460px;
}

.theme-toggle-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 2rem 1rem;
}

.standard-width {
  max-width: 92%;
  margin: auto;
}

#inputText,
#outputText {
  resize: vertical;
  min-height: 520px;
}

.btn-group-vertical .btn {
  margin-bottom: 0.5rem;
}

.output-wrapper {
  position: relative;
  background-color: var(--bs-body-bg);
  transition: background-color 0.3s;
}

.output-wrapper:hover .btn-fade {
  opacity: 1;
}

.btn-fade {
  opacity: 0.3;
  transition: opacity 0.3s;
}

#themeIcon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#themeToggle:checked ~ .form-check-label #themeIcon {
  transform: rotate(180deg);
}

footer {
  color: var(--bs-secondary-color);
  transition: color 0.3s;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bs-body-bg);
  padding: 0.5rem 0;
}

/* Info section */
#what-is-commaease {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--bs-border-color-translucent);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s, color 0.3s;
}

#what-is-commaease h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--bs-heading-color);
}

#what-is-commaease ul {
  list-style: none;
  padding-left: 0;
}

#what-is-commaease ul li {
  padding: 0.5rem 0;
  line-height: 1.5;
}
