@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Roboto:wght@400;500&display=swap");

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: "Roboto", sans-serif;
  background: seashell;
  color: #1e293b;
  line-height: 1.6;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background-color: #2c3e50;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content h1 {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.content p {
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.project_name {
  font-size: 23px;
  font-family: "Great Vibes", cursive;
  color: wheat;
  margin-left: 20px;
}

.nav-links a {
  font-size: 23px;
  color: wheat;
  text-decoration: none;
  padding: 25px;
}

.nav-links {
  margin-left: auto;
}

.nav-links a:hover {
  color: orange;
  transition: color 0.3s ease;
}

.card {
  max-width: 600px;
  margin: 40px auto;
  background: bisque;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px brown;
}

.card h1 {
  font-size: 30px;
  margin-bottom: 20px;
  color: navy;
}

.card:hover {
  transform: translateY(-4px);
  transition: 0.3s ease;
}

.textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 1;
  border: 1px solid maroon;
  border-radius: 6px;
  font-size: 16px;
  resize: vertical;
}

.textarea:focus {
  outline: none;
  border: 1px solid #6366f1;
}

.predict-btn {
  background-color: #1e293b;
  color: white;
  border: none;
  padding: 16px 30px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.predict-btn:hover {
  background-color: #0800ff;
}

/* Result Card */
.result-card {
  margin-top: 25px;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.4s ease-in-out;
}

/* Status Colors */
.result-card.none {
  background: #e8f5e9;
}
.result-card.uncertain {
  background: #fff8e1;
}
.result-card.high,
.result-card.strong {
  background: #fdecea;
}

/* Header */
.result-header.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.result-header.centered .status-badge {
  display: inline-block;
  margin-top: 10px;
}

/* Badge */
.status-badge {
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

/* Confidence Section */
.confidence-section {
  margin-top: 15px;
}

.confidence-bar {
  width: 100%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease-in-out;
}

/* Warning Box */
.warning-box {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  border-left: 3px solid #ff5900;
  border-radius: 8px;
}

/* Feedback */
.feedback-section {
  margin-top: 30px;
  text-align: center;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.feedback-btn {
  padding: 8px 16px;
  min-width: 90px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #439f05;
  font-size: 14px;
  color: white;
  transition: 0.2s;
}

.feedback-btn.negative {
  font-size: 14px;
  background: #ef3629;
}

.feedback-btn:hover {
  transform: translateY(-2px);
  transition: 0.3s ease;
}

/* Extras */
.extras {
  margin-top: 20px;
}

.explaination-btn {
  padding: 8px 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  min-width: 60px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #1e293b;
  font-size: 14px;
  color: white;
  transition: 0.2s;
}

.api-box {
  margin-top: 8px;
}

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

.toast-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6247;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, top 0.3s ease;
  z-index: 9999;
}

.toast-message.show {
  opacity: 1;
  top: 30px;
}


/* About Section */
.about_container {
  background-color: antiquewhite;
  padding: 30px;
  max-width: 1000px;
  margin: auto;
}

.about_content h1 {
  font-size: 38px;
  margin-top: 18px;
  margin-bottom: 25px;
  color: navy;
}

.about_content h3 {
  font-size: 21px;
  margin-top: 10px;
  margin-bottom: 5px;
  color: black;
}

.about_content p {
  font-size: 18px;
  color: black;
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #222;
  text-align: center;
  padding: 5px;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 5%;
}

.footer p {
  color: white;
}

/* Responsive Fixes */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project_name {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .nav-links {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 18px;
  }

  .container {
    width: 95%;
    margin: 20px auto;
    padding: 15px;
  }

  .about_container {
    padding: 15px;
  }

  .about_content h1 {
    font-size: 28px;
  }

  .about_content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .content h1 {
    font-size: 1.6rem;
  }

  .container h1 {
    font-size: 22px;
  }

  .result {
    font-size: 16px;
  }
}
