body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #e9ecef 100%);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  text-align: center;
  padding: 20px 0 10px;
}

.subtitle {
  font-size: 1rem;
  color: #666;
  margin-top: -10px;
}

.intro {
  text-align: center;
  margin-bottom: 20px;
}

.risk-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.risk-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.risk-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.risk-card.selected {
  border-color: #1976d2;
}

.risk-card img {
  width: 90px;
  height: auto;
}

.risk-label {
  margin-top: 8px;
  font-weight: 600;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  flex-grow: 1;
}

@media (min-width: 768px) {
  #app {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.image-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.image-card img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.control-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .control-pane {
    width: 200px;
  }
}

#controls label {
  font-weight: 600;
}

#controls select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#applyBtn {
  padding: 10px 20px;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

#applyBtn:disabled {
  background: #90a4ae;
  cursor: not-allowed;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.tab-btn {
  padding: 6px 12px;
  border: none;
  background: #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
}

.tab-btn.active {
  background: #1976d2;
  color: #fff;
}

.tab-btn:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
}


.tab-content {
  display: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  margin-top: 10px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.scrollable {
  max-height: 150px;
  overflow-y: auto;
}

.app-footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: #555;
}

