/* General Page Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-image: url("./D869_78_642_1200.jpg");
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(3px);
}

/* 🔹 Navigation Bar */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #4cafef;
  margin: 0;
  font-size: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4cafef;
}

/* 🔹 Language Button */
.lang-btn {
  background: #ff9800;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: background 0.3s;
}
.lang-btn:hover {
  background: #e68900;
}

.container {
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 600px;
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(22px, 4vw, 30px);
}

p {
  margin-bottom: 20px;
  color: #ccc;
  font-size: clamp(13px, 2.5vw, 16px);
}

.upload-box {
  margin-bottom: 20px;
}

input[type="file"] {
  display: none;
}

.upload-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4cafef, #3a8ad9);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
}

.upload-btn:hover {
  transform: scale(1.05);
  box-shadow: 0px 4px 15px rgba(76, 175, 239, 0.6);
}

.preview-box img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 15px;
  border: 3px solid #4cafef;
  display: none;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.4);
}

/* Result Section as Grid */
.result-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

/* Each prediction card in grid */
.prediction-card {
  background: #2c2c3e;
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.prediction-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, #4cafef, #3a8ad9);
  color: #fff;
}

.prediction-card.top {
  border: 2px solid #ffeb3b;
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  color: #222;
}

.prediction-name {
  font-size: clamp(14px, 2.5vw, 18px);
  margin-bottom: 6px;
  font-weight: bold;
}

.prediction-prob {
  font-size: 14px;
  color: #ddd;
}

.prediction-bar-bg {
  width: 100%;
  height: 8px;
  background: #444;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.prediction-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  border-radius: 4px;
  transition: width 0.8s ease-in-out;
  box-shadow: 0px 0px 6px rgba(255, 152, 0, 0.7);
}

/* Extra Sections Layout */
.extra-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
}

.container h2 {
  margin-bottom: 10px;
  font-size: clamp(18px, 3vw, 24px);
  color: #4cafef;
}
