body {
  font-family: Arial, sans-serif;
  background: #f1f2f6;
  margin: 0;
  padding: 40px;
}
.container {
  background: #fff;
  padding: 30px;
  max-width: 800px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h2 {
  text-align: center;
  color: #2d3436;
}
.textarea-wrapper {
  position: relative;
}
.clear-btn {
  position: absolute;
  top: -30px;
  right: 0;
  background: none;
  border: none;
  color: gray;
  font-size: 16px;
  cursor: pointer;
}
.clear-btn:hover {
  color: #d63031;
}
textarea {
  width: 100%;
  height: 180px;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
}
input[type="file"] {
  margin-top: 10px;
}
button {
  padding: 10px 20px;
  background: #0984e3;
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}
button:disabled {
  background: #b2bec3;
  cursor: not-allowed;
}
.word-count, .char-limit {
  font-size: 14px;
  color: #444;
  margin-top: 10px;
  text-align: right;
}
.char-limit.warning {
  color: #d63031;
}
.result {
  margin-top: 30px;
}
.meter {
  height: 30px;
  background: #dfe6e9;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
}
.fill {
  height: 100%;
  background: #fab1a0;
  text-align: center;
  color: #2d3436;
  font-weight: bold;
  line-height: 30px;
}
.detected-text {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
}
.highlight-ai {
  background-color: #ffeaa7;
  padding: 2px 4px;
  border-radius: 4px;
}
.highlight-human {
  background-color: #dfe6e9;
  padding: 2px 4px;
  border-radius: 4px;
}
.note {
  font-size: 15px;
  color: #2d3436;
  margin-top: 10px;
  font-weight: bold;
}
.spinner {
  margin: 20px auto;
  border: 6px solid #dfe6e9;
  border-top: 6px solid #0984e3;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
