/* Reset en basis styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styling */
.header {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* Logo styling */
.logo-container {
  margin-bottom: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: inherit;
  padding: 18px 35px;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-image:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.logo-image {
  max-height: 400px;
  width: auto;
  height: auto;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 10px;
  color: #333;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.8;
  color: #666;
}

/* Main content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Schema Selection */
.schema-selection {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schema-list {
  text-align: center;
  color: #333;
  max-width: 600px;
  width: 100%;
}

.schema-list h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 10px;
  color: #333;
}

.schema-list p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 20px;
  color: #666;
}

/* Search Container */
.search-container {
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #ffae00;
  box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.1);
  background: white;
}

.search-input::placeholder {
  color: #999;
}

.search-results-info {
  margin-top: 10px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.schema-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.schema-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.schema-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border-color: #ffae00;
}

.schema-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

.schema-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}

.schema-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.schema-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.schema-status.published {
  background: #d4edda;
  color: #155724;
}

.schema-status.draft {
  background: #fff3cd;
  color: #856404;
}

.schema-status.archived {
  background: #f8d7da;
  color: #721c24;
}

.schema-actions {
  margin-top: 15px;
}

.schema-actions .btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.schema-actions .btn-primary {
  background: #ffae00;
  color: white;
}

.schema-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 174, 0, 0.3);
}

/* Button variants */
.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
  color: white;
}

.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

/* Question container */
.question-container {
  background: #ffae00;
  color: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.question-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.question-card {
  text-align: center;
}

.question-number {
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.question-content {
  margin-top: 30px;
}

.question-text {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: white;
  line-height: 1.5;
  font-weight: 500;
}

/* Answer buttons */
.answer-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: nowrap;
}

.btn {
  padding: 20px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-yes {
  background: linear-gradient(45deg, #00e676, #00c853);
  color: white;
}

.btn-yes:hover {
  transform: translateY(-2px);
}

.btn-no {
  background: linear-gradient(45deg, #f44336, #da190b);
  color: white;
}

.btn-no:hover {
  transform: translateY(-2px);
}

.btn-start {
  background: linear-gradient(45deg, #ffae00, #e69d00);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 174, 0, 0.3);
  font-size: 1.2rem;
  padding: 18px 40px;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 174, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(45deg, #ffae00, #e69d00);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 174, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 174, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: none;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.btn-turquoise {
  background: linear-gradient(135deg, #ffd700, #ffc107);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-turquoise:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, #ffb300, #ffa000);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Question actions positioning */
.question-actions {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.question-footer-text {
  text-align: center;
  margin-top: 15px;
  font-size: 0.7rem;
  color: white;
  opacity: 0.8;
  font-style: italic;
}

/* Result actions styling */
.result-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.result-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-width: 120px;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Progress bar */
.progress-container {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: #4ecdc4;
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-weight: 600;
  color: white;
  font-size: 1.1rem;
}

/* Navigation */
.navigation-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Result container */
.result-container {
  background: #ffae00;
  color: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  text-align: center;
}

.result-card h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 300;
}

.result-content h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.result-description {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: white;
  line-height: 1.6;
}

.recommendations {
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
}

.recommendations h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.recommendations ul {
  list-style: none;
  padding: 0;
}

.recommendations li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: white;
  line-height: 1.5;
}

.recommendations li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 15px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffae00;
  box-shadow: 0 0 0 2px rgba(255, 174, 0, 0.2);
}

/* Footer */
.footer {
  margin-top: 30px;
  text-align: center;
}

.schema-selector {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.schema-selector label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

.schema-selector select {
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  background: white;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.schema-selector select:focus {
  outline: none;
  border-color: #ffae00;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
  }

  .container {
    padding: 15px;
    margin: 0 !important;
    max-width: none !important;
  }

  .logo-container {
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden;
    padding: 0 !important;
    text-align: center !important;
  }

  .logo {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .logo-image {
    width: 90vw !important;
    height: auto !important;
    max-height: none !important;
    min-height: 72px !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }

  .search-container {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .search-results-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .schema-grid {
    gap: 12px;
    margin-top: 15px;
    padding: 0 10px;
  }

  .schema-card {
    padding: 15px;
  }

  .schema-card h3 {
    font-size: 1.2rem;
  }

  .schema-card p {
    font-size: 0.85rem;
  }

  .question-container,
  .result-container {
    padding: 20px;
  }

  .question-text {
    font-size: 1.4rem;
  }

  .answer-buttons {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .btn {
    flex: 1;
    min-width: 120px;
    max-width: none;
    padding: 18px 25px;
    font-size: 1.2rem;
  }

  .navigation-container {
    flex-direction: column;
    align-items: center;
  }

  .recommendations {
    text-align: center;
  }

  .recommendations ul {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
  }

  .container {
    padding: 10px;
    margin: 0 !important;
    max-width: none !important;
  }

  .logo-container {
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden;
    padding: 0 !important;
    text-align: center !important;
  }

  .logo {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .logo-image {
    width: 90vw !important;
    height: auto !important;
    max-height: none !important;
    min-height: 63px !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 0.9rem;
  }

  .question-text {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .answer-buttons {
    gap: 8px;
  }

  .btn {
    font-size: 1.1rem;
    padding: 18px 20px;
    flex: 1;
    min-height: 56px; /* Better touch target */
  }

  .schema-card {
    padding: 15px;
  }

  .schema-card h3 {
    font-size: 1.2rem;
  }

  .schema-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 15px;
  }

  .progress-container {
    padding: 15px;
  }

  .result-card {
    padding: 20px;
  }

  .result-card h2 {
    font-size: 1.3rem;
  }

  .result-content h3 {
    font-size: 1.3rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-container,
.result-container {
  animation: fadeIn 0.5s ease-out;
}

/* Loading animation */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.btn:active {
  transform: scale(0.95);
}

/* Focus states for accessibility */
.btn:focus {
  outline: 3px solid rgba(255, 174, 0, 0.5);
  outline-offset: 2px;
}

.schema-selector select:focus {
  outline: 3px solid rgba(255, 174, 0, 0.5);
  outline-offset: 2px;
}

/* Editor Button */
.btn-editor {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  margin-left: 15px;
}

.btn-editor:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.editor-content {
  width: 800px;
  height: 600px;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(45deg, #ffae00, #e69d00);
  color: white;
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  font-weight: 300;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Editor Tabs */
.editor-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  background: #e9ecef;
  color: #333;
}

.tab-btn.active {
  background: white;
  color: #ffae00;
  border-bottom-color: #ffae00;
}

/* Tab Content */
.tab-content {
  display: none;
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

.editor-section {
  margin-bottom: 30px;
}

.editor-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #ffae00;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Question and Result Lists */
.question-list,
.result-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 20px;
}

.question-item,
.result-item {
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.question-item:hover,
.result-item:hover {
  background: #f8f9fa;
}

.question-item:last-child,
.result-item:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
}

.item-id {
  font-weight: 600;
  color: #ffae00;
  margin-bottom: 5px;
}

.item-text {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.item-actions {
  display: flex;
  gap: 10px;
}

.btn-small {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  min-width: auto;
}

.btn-danger {
  background: linear-gradient(45deg, #f44336, #da190b);
  color: white;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Modal Footer */
.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  background: #f8f9fa;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-state h4 {
  margin-bottom: 10px;
  color: #999;
}

.empty-state p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw;
    height: 95vh;
    margin: 10px;
  }

  .editor-content {
    width: 100%;
    height: 100%;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .tab-content {
    padding: 20px;
  }

  .modal-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .editor-tabs {
    flex-direction: column;
  }

  .tab-btn {
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    border-right: none;
  }

  .tab-btn.active {
    border-bottom-color: #e9ecef;
    border-left: 3px solid #ffae00;
  }
}

/* Modal Overlay - Perfect Centering */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
  display: none;
}

/* Notes Modal Styles */
.modal-overlay .modal-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0;
  transform: none;
}

#notesModal .modal-content {
  max-width: 700px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: none;
  background: linear-gradient(45deg, #ffae00, #e69d00);
  border-radius: 15px 15px 0 0;
}

.modal-header h2 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.modal-body {
  padding: 30px;
  border-radius: 0 0 15px 15px;
  background: white;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
}

.form-group textarea,
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus {
  outline: none;
  border-color: #ffae00;
  box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Adres velden styling */
.address-fields {
  margin-bottom: 15px;
}

.address-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.address-field {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.address-field:focus {
  outline: none;
  border-color: #ffae00;
  box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.1);
}

.house-number {
  flex: 0 0 120px; /* Vaste breedte voor huisnummer */
}

.postal-code {
  flex: 0 0 140px; /* Vaste breedte voor postcode */
}

.location-input-group {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: flex-start;
}

.location-input-group input {
  flex: 1;
}

.location-status {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.location-status.success {
  color: #4caf50;
}

.location-status.error {
  color: #f44336;
}

.location-status.loading {
  color: #2196f3;
}

.location-status.warning {
  color: #ff9800;
}

.modal-footer .btn {
  min-width: 120px;
  padding: 12px 24px;
  font-size: 1rem;
}

.modal-footer .btn-primary {
  background: linear-gradient(45deg, #ffae00, #e69d00);
  color: white;
  border: 2px solid #ffae00;
}

.modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, #e69d00, #cc8b00);
  box-shadow: 0 6px 20px rgba(255, 174, 0, 0.4);
}

.modal-footer .btn-secondary {
  background: transparent;
  color: #333;
  border: 2px solid #e0e0e0;
}

.modal-footer .btn-secondary:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Chart Container Styling */
.chart-container {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.chart-wrapper {
  height: 120px;
  width: 100%;
  position: relative;
}

.chart-container canvas {
  max-width: 100%;
  max-height: 100%;
}

/* Reset Section Styling */
.reset-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.reset-section h3 {
  color: #dc3545;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.reset-section p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.reset-analytics-btn {
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: white;
  border: 2px solid #dc3545;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.reset-analytics-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, #c82333, #a71e2a);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.reset-analytics-btn:active {
  transform: translateY(0);
}

/* GPS knop specifieke styling - zelfde als PDF Genereren knop */
#getLocationBtn {
  background: linear-gradient(45deg, #ffae00, #e69d00) !important;
  color: white !important;
  border: 2px solid #ffae00 !important;
  box-shadow: 0 6px 20px rgba(255, 174, 0, 0.4) !important;
}

#getLocationBtn:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(45deg, #e69d00, #cc8b00) !important;
  box-shadow: 0 6px 20px rgba(255, 174, 0, 0.4) !important;
}

/* Verberg GPS knop op desktop - alleen zichtbaar op mobiele apparaten */
@media (min-width: 769px) {
  #getLocationBtn {
    display: none !important;
  }
}

/* Responsive Notes Modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 5px;
    align-items: flex-start;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .modal-overlay .modal-content {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 10px);
    margin: 0;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 10px);
  }

  .modal-header {
    padding: 15px 20px;
    flex-shrink: 0;
  }

  .modal-body {
    padding: 15px 20px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    min-height: 0;
  }

  .address-row {
    flex-direction: column;
    gap: 8px;
  }

  .house-number,
  .postal-code {
    flex: 1; /* Volle breedte op mobiel */
  }

  .location-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-footer {
    flex-direction: column-reverse;
    flex-shrink: 0;
    padding: 10px 20px;
    margin-top: auto;
    background: white;
    border-top: 1px solid #e0e0e0;
  }

  .modal-footer .btn {
    width: 100%;
    margin-bottom: 8px;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .modal-footer .btn:first-child {
    margin-bottom: 0;
  }

  .modal-footer .btn:last-child {
    margin-bottom: 8px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .modal-overlay {
    padding: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .modal-overlay .modal-content {
    max-height: calc(100dvh - 4px);
    height: calc(100dvh - 4px);
  }

  .modal-header {
    padding: 10px 15px;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 10px 15px;
  }

  .modal-footer {
    padding: 8px 15px;
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    padding: 14px 20px;
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .modal-footer .btn:first-child {
    margin-bottom: 0;
  }

  .modal-footer .btn:last-child {
    margin-bottom: 6px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .address-field {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  textarea {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}

/* Modal header styling for additional info */
.modal-header h3 {
  color: white;
}

/* Additional Info Button */
.additional-info-btn {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: none;
  padding: 0;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.additional-info-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Positioning for info button in answer buttons */
#answerButtons .additional-info-btn {
  margin: 0 8px;
  flex-shrink: 0;
  align-self: center;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Mobile specific styling for additional info button */
@media (max-width: 768px) {
  #answerButtons .additional-info-btn {
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 8px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 !important;
  }
}

@media (max-width: 480px) {
  #answerButtons .additional-info-btn {
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 6px !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
    border-radius: 50% !important;
    aspect-ratio: 1 !important;
  }
}

.additional-info-content {
  padding: 20px 0;
  line-height: 1.6;
  color: #333;
}

.additional-info-content h4 {
  color: #ffae00;
  margin-bottom: 10px;
  font-weight: 600;
}

.additional-info-content p {
  margin-bottom: 15px;
}

.additional-info-content ul,
.additional-info-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.additional-info-content li {
  margin-bottom: 5px;
}

.additional-info-content strong {
  color: #ffae00;
  font-weight: 600;
}
