body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(to bottom right, #f7e9a0, #a0e1f7);
  font-family: Arial, sans-serif;
}

#phone-container {
  width: 375px;
  height: 667px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

h1 {
  text-align: center;
  font-size: 18px;
  margin: 0;
  padding: 10px;
  background: #ffc107;
  color: #212121;
  font-weight: bold;
}

#questionnaire-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  transition: transform 0.5s ease-in-out;
  scrollbar-width: thin;
  scrollbar-color: #ffc107 #f1f1f1;
}

.question-container {
  border: 2px solid #00bcd4;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 15px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 188, 212, 0.2);
  transition: transform 0.3s ease;
  position: relative;
}

.question-container img {
  max-width: 30px;
  max-height: 30px;
  margin-top: 10px;
  border: 2px solid #4CAF50;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

label {
  display: block;
  margin-top: 5px;
}

textarea {
  width: 100%;
  margin-top: 5px;
  resize: vertical;
  border: 1px solid #00bcd4;
  border-radius: 5px;
  padding: 5px;
  font-size: 14px;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid #ddd;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: #00bcd4;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #0097a7;
  transform: scale(1.05);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#round-loader {
  display: none;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#generate-pdf {
  display: none;
  margin: 10px;
}

#download-excel {
  display: none;
  margin: 10px;
  background-color: #28a745;
}

#download-excel:hover {
  background-color: #218838;
}

/* Group header styling */
.group-header {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  padding: 15px;
  margin: -10px -10px 20px -10px;
  border-radius: 10px 10px 0 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

.group-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
