/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #333;
}
header {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  position: relative;
}
header h1 {
  margin: 0;
  font-size: 2rem;
}
header p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}
#authContainer {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 0.9rem;
}
#authContainer button {
  background: #e74c3c;
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 0.9rem;
}
nav {
  background: #34495e;
  display: flex;
  justify-content: center;
}
nav button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}
nav button:hover, nav button.active {
  background: #e74c3c;
}
.container {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}
h2 {
  color: #2c3e50;
}
textarea {
  width: 100%;
  height: 200px;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  margin-bottom: 1rem;
}
.analyze-btn {
  background: #e74c3c;
  border: none;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.analyze-btn:hover {
  background: #c0392b;
}
.feedback, .custom-feedback {
  background: #fff;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-top: 1rem;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.4;
}
.upload-area {
  margin-bottom: 1rem;
}
.hidden {
  display: none;
}
.history-list ul {
  list-style-type: none;
  padding: 0;
}
.history-list li {
  background: #fff;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.history-list button {
  background: #3498db;
  border: none;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
}
.footer {
  text-align: center;
  background: #2c3e50;
  color: #fff;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 0.9rem;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 2rem;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  position: relative;
}
.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #aaa;
}
.close:hover {
  color: #000;
}
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
}
