/* styles.css */

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 2rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input[type="file"] {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  width: 100%;
}

button {
  background-color: #007bff;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

pre {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}

.gpt-review-box {
  background: #ffffff;
  border-left: 5px solid #007bff;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: "Segoe UI", sans-serif;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-top: 2rem;
}

#formattedFeedback {
  font-family: 'Comic Neue', 'Segoe UI', sans-serif;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
  background-color: #fdfdfd;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 5px solid #28a745;
  margin-top: 1rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

/* Emojis or categories */
.score-section {
  font-weight: bold;
  font-size: 1.15rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.score-summary {
  background-color: #f6fff6;
  border-left: 5px solid #28a745;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #2d2d2d;
}

.score-line {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.emoji-circle {
  font-size: 1.2rem;
}

.final-feedback {
  margin-top: 0;
  line-height: 1.6;
}

.score-highlight {
  font-size: 1.2rem;
  font-weight: bold;
  color: #28a745;
}

.feedback-bullet {
  margin-left: 1.5rem;
  display: block;
  margin-bottom: 0.4rem;
}

.emoji {
  font-size: 1.3rem;
  margin-right: 0.4rem;
}

strong {
  color: #222;
}

em {
  color: #666;
  font-style: italic;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.feedback-bullet:hover {
  background-color: #eef6ff;
  border-left: 3px solid #007bff;
  padding-left: 0.5rem;
  cursor: default;
}

#formattedFeedback h3 {
  font-size: 1.3rem;
  margin-top: 1rem;
  color: #007bff;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 0rem;
  align-items: flex-end;
}

.form-group {
  flex: 1 1 300px;
  height: 100px;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input[type="file"],
.form-group select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  height: 50px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
