/* ==== MAIN CONTAINER ==== */
#risk-profiler-container {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  max-width: 680px;
  margin: 40px auto;
  padding: 40px 50px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #2c2c2c;
  transition: all 0.3s ease;
}

/* ==== PROGRESS BAR ==== */
#progress-bar-container {
  width: 100%;
  background: #e0e0e0;
  border-radius: 12px;
  height: 20px;
  margin-bottom: 35px;
  overflow: hidden;
  box-shadow: inset 2px 2px 5px #ffffff, inset -2px -2px 6px #cccccc;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(270deg, #2a3f91, #3451b5, #2a3f91);
  background-size: 600% 600%;
  animation: gradientShift 5s ease infinite;
  border-radius: 12px;
  transition: width 0.4s ease-in-out;
  box-shadow: 0 0 10px rgba(42, 63, 145, 0.6);
}

/* ==== QUESTION ==== */
.question-container {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.5s forwards ease-out;
}

.question-container.show {
  opacity: 1;
  transform: translateY(0);
}

.question-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #dc3545;
  text-shadow: 0 1px 2px rgba(220, 53, 69, 0.3);
}

/* ==== ANSWER BUTTONS with GRADIENT ==== */
.answers-container button {
  display: block;
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 12px 0;
  background: linear-gradient(90deg, #e66465, #4d79ff); /* црвено-син градиент */
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-align: left;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.answers-container button:hover,
.answers-container button:focus {
  background: linear-gradient(90deg, #c0392b, #2c3e50);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
  outline: none;
}

.answers-container button:active {
  transform: scale(1.05);
  transition: transform 0.1s ease;
}

/* ==== RESULT BOX ==== */
.result-message {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 30px 20px;
  background: #dbeafe;
  border-radius: 18px;
  color: #2a3f91;
  text-align: center;
  box-shadow: 0 6px 14px rgba(42, 63, 145, 0.25);
  margin-top: 30px;
}

/* ==== EMAIL INPUT ==== */
label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

input[type="email"]:focus {
  border-color: #2a3f91;
  box-shadow: 0 0 8px rgba(42, 63, 145, 0.3);
  outline: none;
}

/* ==== GENERAL BUTTON ==== */
button {
  background: #2a3f91;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 0;
  width: 100%;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(42, 63, 145, 0.4);
  transition: all 0.3s ease;
  user-select: none;
}

button:hover,
button:focus {
  background: #223a75;
  transform: translateY(-3px);
  outline: none;
}

button:active {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(42, 63, 145, 0.3);
  transition: transform 0.1s ease;
}

/* ==== SEND BUTTON ==== */
.send-btn {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  padding: 20px 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, #dc3545 0%, #2a3f91 100%) !important;
  color: white !important;
  box-shadow: 0 8px 24px rgba(220, 53, 69, 0.5), 0 8px 24px rgba(42, 63, 145, 0.5) !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.send-btn:hover,
.send-btn:focus {
  background: linear-gradient(90deg, #a82725 0%, #223a75 100%) !important;
  transform: translateY(-3px);
  outline: none !important;
}

.send-btn:active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4), 0 4px 12px rgba(34, 58, 117, 0.4);
  transition: transform 0.1s ease !important;
}

/* ==== LANGUAGE SWITCHER ==== */
#language-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-btn {
  padding: 10px 20px;
  border: 2px solid #2a3f91;
  background-color: #fff;
  color: #2a3f91;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.lang-btn:hover {
  background-color: #2a3f91;
  color: white;
}

.lang-btn.active {
  position: relative;
  background-color: #2a3f91;
  color: white;
  box-shadow: 0 0 10px 3px rgba(42, 63, 145, 0.8), 0 0 20px 7px rgba(42, 63, 145, 0.4);
  animation: glowPulseBlue 2.5s infinite ease-in-out;
}

/* ==== FOOTER ==== */
#risk-profiler-footer {
  text-align: center;
  font-size: 14px;
  color: #777;
  background: #f8d7da; /* светло црвена позадина */
  padding: 20px 10px;
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  user-select: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==== ANIMATIONS ==== */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlowBlue {
  0% {
    box-shadow: 0 0 8px 2px rgba(42, 63, 145, 0.5);
  }
  100% {
    box-shadow: 0 0 18px 6px rgba(42, 63, 145, 0.85);
  }
}

@keyframes glowPulseBlue {
  0%, 100% {
    box-shadow: 0 0 10px 2px rgba(42, 63, 145, 0.8), 0 0 20px 5px rgba(42, 63, 145, 0.4);
  }
  50% {
    box-shadow: 0 0 14px 3px rgba(42, 63, 145, 1), 0 0 26px 8px rgba(42, 63, 145, 0.6);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 600px) {
  #risk-profiler-container {
    padding: 25px 30px;
  }

  .question-text {
    font-size: 1.3rem;
  }

  .answers-container button {
    font-size: 1rem;
    padding: 14px 20px;
  }

  .send-btn {
    font-size: 1.2rem !important;
  }
}

#app-wrapper {
  max-width: 600px;       /* фиксна максимална ширина */
  margin: 40px auto;      /* центрирање */
  padding: 30px 40px;     /* простор внатре */
  background: #ffe5e5;       /* бела позадина */
  border-radius: 16px;    /* заоблени агли */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* сенка */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* фонт */
  color: #222;
}