/* Background setup */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url("image.jpg") no-repeat center center fixed;
  background-size: cover;
  color: white;
}

/* Semi-transparent overlay */
.overlay {
  background-color: rgba(0, 0, 0, 0.65);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central container */
.container {
  text-align: center;
  max-width: 760px;
  width: 92%;
  padding: 30px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Title & subtitle */
.title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.subtitle {
  font-size: 16px;
  margin-bottom: 25px;
  color: #f1f1f1;
}

/* File input */
.file-label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

input[type="file"] {
  padding: 10px;
  border: 1px solid #FFD700;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  width: 100%;
  max-width: 420px;
}

/* Fields */
.field {
  text-align: left;
}

.field label {
  display: block;
  font-size: 14px;
  margin: 8px 0 6px;
  color: #f6f6f6;
}

.select, .field input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background-color: rgba(255,255,255,0.08);
  color: #fa0000;
  outline: none;
}

/* Layout helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Hint */
.hint {
  margin: 6px 0 10px;
  font-size: 12px;
  color: #ffffff;
  opacity: 0.9;
}

/* Flash messages */
.flash {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.5);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Generate button */
.btn {
  background-color: #FFD700;
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background-color: #e6c200;
}

/* Optional: download section styles kept for future */
.download-section { margin-top: 20px; }
.success-msg { font-size: 16px; color: #4CAF50; margin-bottom: 10px; }
.download-btn {
  display: inline-block;
  background-color: #4CAF50;
  padding: 10px 18px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}
.download-btn:hover { background-color: #3a9e42; }
