/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

/* ===== Body ===== */
body {
  background: radial-gradient(circle at top, #1b1f25 0%, #0d0f12 100%);
  color: #e8ebe5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* ===== Main Container ===== */
.container {
  width: 90%;
  max-width: 700px;
  background: rgba(111, 166, 214, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 30px 40px;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.8s ease-in-out;
}

/* ===== Headings ===== */
h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.2rem;
  color: #9ca3af;
  margin-bottom: 20px;
}

/* ===== File Upload ===== */
input[type="file"] {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 10px;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="file"]:hover {
  border-color: #3b82f6;
}

/* ===== Buttons ===== */
button {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1rem;
  margin: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* ===== Canvas / Visualizer ===== */
#visualizer {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  margin: 20px 0;
  border-radius: 15px;
}

/* ===== Summary Box ===== */
#summary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  font-size: 1rem;
  color: #d1d5db;
  margin-top: 25px;
  line-height: 1.5;
}

/* ===== Emotion Display ===== */
#emotionDisplay {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #a5b4fc;
  font-weight: 500;
}

/* ===== Reupload Button ===== */
#reupload {
  display: none;
  background: linear-gradient(90deg, #10b981, #059669);
}

#reupload:hover {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.5rem;
  }

  button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}
