:root {
  --primary: #3498db;
  --warning: #f39c12;
  --danger: #e74c3c;
  --text: #f9f9f9;
  --bg: #333;
  --card: #333;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.app {
  background: var(--card);
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #f9f9f9;
  width: 90%;
  max-width: 500px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

textarea {
  background: var(--card);
  color: var(--text);
  width: 90%;
  height: 150px;
  padding: 15px;
  font-size: 1rem;
  border: 2px solid #555;
  border-radius: 10px;
  resize: none;
  transition: border-color 0.2s;
}

textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  position: relative;
}

#char-count {
  color: var(--text);
  font-weight: bold;
}

.progress-bar {
  position: absolute;
  height: 4px;
  background: var(--primary);
  bottom: -8px;
  left: 0;
  border-radius: 4px;
  transition: width 0.2s, background-color 0.2s;
}
