textarea {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  border: 2px solid #e5e6eb;
  border-radius: 8px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

textarea:focus {
  border-color: #165DFF;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.char-count {
  display: inline-block;
  font-size: 13px;
  color: #86909c;
  margin-top: 8px;
}

.char-count strong {
  color: #165DFF;
  font-weight: 600;
}

.tool-buttons {
  margin: 24px 0;
  padding: 20px;
  background: #f7f8fa;
  border-radius: 8px;
  display: grid;
  gap: 16px;
}

.tool-group h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #4e5969;
  font-weight: 600;
}

.tool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tool-group button {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #c9cdd4;
  border-radius: 6px;
  color: #4e5969;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-group button:hover {
  border-color: #165DFF;
  color: #165DFF;
  background: #f0f5ff;
}

.output-section {
  margin-top: 20px;
}

.output-actions {
  display: flex;
  gap: 8px;
}

.btn-tiny {
  padding: 6px 14px;
  font-size: 12px;
  border: 1px solid #c9cdd4;
  background: #fff;
  color: #4e5969;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tiny:hover:not(.btn-danger) {
  border-color: #165DFF;
  color: #165DFF;
}

.btn-danger:hover {
  border-color: #f53f3f;
  color: #f53f3f;
  background: #fff2f0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  margin: 0 0 20px 0;
  color: #1d2129;
  font-size: 18px;
}

.modal-content label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4e5969;
  margin-bottom: 6px;
  margin-top: 14px;
}

.modal-content input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #c9cdd4;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}

.modal-content input[type="text"]:focus {
  border-color: #165DFF;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.modal-content input[type="checkbox"] {
  margin-right: 6px;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .tool-buttons {
    padding: 16px;
  }

  .tool-group button {
    padding: 7px 12px;
    font-size: 12px;
  }
}