/* =================================
   GLOBAL RESET
   ================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: #1f2933;
}
.warning-text {
  color: #dc2626 !important; /* strong red */
}
/* =================================
   GLASS BASE
   ================================= */

.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* =================================
   BANNER
   ================================= */

.banner-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.banner-image {
  max-width: 100%;
  max-height: 60px;
}

/* =================================
   CARDS (GLASS + NEUMORPHIC)
   ================================= */
h1 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    margin: 0.5rem 0;
    color: #222; /* ✅ ADD THIS */
}

#login-container,
#quiz-container {
  width: 92%;
  max-width: 900px;
  margin: 25px auto;
  padding: 24px;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  border-radius: 16px;

  /* neumorphism depth */
  box-shadow:
    8px 8px 18px rgba(0,0,0,0.08),
    -6px -6px 14px rgba(255,255,255,0.7);
}

#login-container {
  max-width: 400px;
}

/* =================================
   INPUTS (SOFT NEUMORPHIC)
   ================================= */

input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;

  border-radius: 8px;
  border: none;

  background: #eef2ff;

  box-shadow:
    inset 3px 3px 6px rgba(0,0,0,0.08),
    inset -3px -3px 6px rgba(255,255,255,0.7);
}
/* =================================
   TIMER
   ================================= */

#timer {
  font-size: 0.95rem;
  color: #b45309;
  background: rgba(255, 244, 214, 0.7);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
}

/* =================================
   OPTIONS (GLASS INTERACTIVE)
   ================================= */

.option-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;

  padding: 12px;
  border-radius: 10px;

  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);

  box-shadow:
    4px 4px 10px rgba(0,0,0,0.06),
    -3px -3px 8px rgba(255,255,255,0.6);

  cursor: pointer;
  transition: all 0.25s ease;
}

.option-row:hover {
  transform: translateY(-2px);
  box-shadow:
    6px 6px 14px rgba(0,0,0,0.08),
    -4px -4px 10px rgba(255,255,255,0.7);
}

.option-row input[type="radio"]:checked + .option-text {
  font-weight: 600;
  color: #2563eb;
}

/* =================================
   FILE SECTION
   ================================= */

.file-section {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.template-preview-container {
  width: 100%;
  padding: 12px;
  border-radius: 10px;

  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}

.template-preview-frame {
  max-width: 460px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.template-preview-image {
  width: 100%;
}

/* =================================
   BUTTON SYSTEM (GLASS + RIPPLE)
   ================================= */

.btn {
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 20px;
  border-radius: 10px;
  border: none;

  font-size: 15px;
  font-weight: 500;
  color: white;

  cursor: pointer;

  /* glass gradient */
  background: linear-gradient(135deg, #2563eb, #3b82f6);

  /* neumorphic shadow */
  box-shadow:
    5px 5px 12px rgba(0,0,0,0.15),
    -3px -3px 8px rgba(255,255,255,0.3);

  transition: all 0.25s ease;
}

/* Elevation hover */
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    8px 8px 18px rgba(0,0,0,0.2),
    -4px -4px 10px rgba(255,255,255,0.3);
}

/* Press */
.btn:active {
  transform: scale(0.96);
}

/* Ripple effect */
.btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn:active::after {
  width: 200%;
  height: 200%;
  opacity: 1;
  transform: scale(1);
  transition: 0.4s ease;
}

/* Disabled */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Variants */

.template-btn {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.download-btn {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  font-weight: 600;
}

.download-btn::before {
  content: "⬇️";
  margin-right: 6px;
}

/* Full width login */
.login-btn {
  width: 100%;
}
/* =================================
   PREVIOUS BUTTON
   ================================= */

.previous-btn {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.previous-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #475569, #64748b);
}

.previous-btn::before {
  content: "←";
  margin-right: 6px;
  font-weight: 700;
}
/* =================================
   BUTTON GROUP
   ================================= */

.button-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* =================================
   RESULTS
   ================================= */

.results-container {
  margin-top: 25px;
  text-align: center;
}

.results-container h3 {
  color: #16a34a;
}

/* =================================
   PROGRESS BAR (GLASS STYLE)
   ================================= */

#progress-wrapper {
  width: 100%;
  height: 10px;
  border-radius: 20px;
  overflow: hidden;

  background: rgba(255,255,255,0.5);
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4CAF50, #2ecc71);
  transition: width 0.35s ease;
}

/* =================================
   FOOTER
   ================================= */

footer {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #555;
}

/* =================================
   MOBILE
   ================================= */

@media (max-width: 600px) {
  #quiz-container {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }

  .button-group {
    flex-direction: column;
  }
}

/* Landscape fix */
@media (max-width: 900px) and (orientation: landscape) {
  .btn {
    flex: 1 1 45%;
    max-width: 220px;
  }

  .download-btn {
    flex: 1 1 100%;
  }
}
/* =================================
   FILE LABEL (UPLOAD BUTTON STYLE)
   ================================= */

.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 18px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;
  color: red;

}

/* Optional icon */
.file-label::before {
  content: "📁";
  margin-right: 6px;
}
