/* ====== RESET E BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
  --primary: #0066cc;
  --danger: #cc3300;
  --warning: #e0a100;
  --success: #2e8b57;
  --dark-bg: #2c2c2c;
  --dark-surface: #1a1a1a;
  --text-light: #ccc;
  --text-color: #fff;
  --accent: #fdbb2d;
  --shadow: rgba(0, 0, 0, 0.3);
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  padding: 40px 20px;
  color: var(--text-color);
}

.container {
  background-color: var(--dark-bg);
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--shadow);
  max-width: 1000px;
  width: 100%;
  padding: 30px;
}

/* ====== HEADER ====== */
header {
  text-align: center;
  position: relative;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-light);
  font-size: 1rem;
}

.attention-icon {
  position: absolute;
  right: 15px;
  top: 15px;
  background-color: var(--accent);
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.attention-icon:hover {
  background-color: #ffe066;
}

/* ====== TEXTAREAS ====== */
.text-areas-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.text-area-group {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.text-area-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
  margin-bottom: 8px;
}

.text-area-label label {
  font-weight: bold;
}

textarea {
  background-color: var(--dark-surface);
  border: none;
  border-radius: 8px;
  color: var(--text-color);
  padding: 15px;
  resize: none;
  height: 180px;
  font-size: 0.95rem;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
  outline: none;
  transition: box-shadow 0.2s;
}

textarea:focus {
  box-shadow: 0 0 10px rgba(253, 187, 45, 0.5);
}

/* ====== BUTTONS SECTION ====== */
.buttons-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 25px 0;
}

.leftbtns, .rightbtns {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.btn {
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  min-width: 100px;
  box-shadow: 0 4px 10px var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary);
}

.btn-primary:hover {
  background-color: #0077dd;
}

.btn-success {
  background-color: var(--success);
}

.btn-success:hover {
  background-color: #34a26d;
}

.btn-warning {
  background-color: var(--warning);
  color: #000;
}

.btn-warning:hover {
  background-color: #ffb700;
}

.btn-danger {
  background-color: var(--danger);
}

.btn-danger:hover {
  background-color: #dd4411;
}

/* ====== OPTIONS SECTION ====== */
.options-section {
  background-color: var(--dark-surface);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px var(--shadow);
}

.section-title {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.checkbox-group,
.capitalization-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input {
  transform: scale(1.2);
  accent-color: var(--primary);
}

/* ====== CUSTOM WORDS SECTION ====== */
.custom-words-section {
  background-color: var(--dark-surface);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px var(--shadow);
}

.custom-words-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.custom-words-input input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #3a3a3a;
  color: white;
  outline: none;
}

.custom-words-input button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
}

.custom-words-input button:hover {
  background-color: #0077dd;
}

.custom-words-list {
  background-color: #1a1a1a;
  border-radius: 6px;
  padding: 10px;
  min-height: 40px;
}

.button-group {
  margin-top: 15px;
}

.button-group .secondary {
  background-color: #3a3a3a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
}

.button-group .secondary:hover {
  background-color: #4a4a4a;
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  margin-top: 30px;
  color: var(--text-light);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ====== MODAL ====== */
.reader-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.reader-modal-content {
  background-color: var(--dark-bg);
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px var(--shadow);
  position: relative;
}

.reader-modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.8rem;
  cursor: pointer;
}

.reader-modal-title {
  color: var(--accent);
  margin-bottom: 15px;
  text-align: center;
}

.reader-modal-text p,
.reader-modal-text li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-light);
}

.mt-10 {
  margin-top: 10px;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 700px) {
  .text-areas-container {
    flex-direction: column;
  }

  .buttons-section {
    justify-content: center;
  }

  .attention-icon {
    position: static;
    margin: 10px auto;
  }
}
