body {
  font-family: sans-serif;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.controls {
  margin-bottom: 2rem;
}

select {
  padding: 0.5rem;
  font-size: 1rem;
  margin-right: 1rem;
}

#image-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.image-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.image-item .info {
  padding: 0.5rem;
  font-size: 0.9rem;
}

.certitude-link {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.8rem;
}

.certitude-link:hover {
  text-decoration: underline;
}

#status {
  margin: 1rem 0;
  font-weight: bold;
}

#large-image-display {
  margin-bottom: 2rem;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  padding: 1rem;
  display: none;
  grid-column: 1 / -1; /* Span full width of the grid */
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
}

#large-image-display.show {
  display: block;
}

#large-image-display img {
  max-width: 100%;
  max-height: 800px;
  min-height: 300px; /* Ensure minimum size */
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  object-fit: contain; /* Maintain aspect ratio */
}

#large-image-display .large-info {
  margin-top: 1rem;
  font-size: 1rem;
}

.large-controls {
  margin-top: 1rem;
  padding: 1rem;
  border-top: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
}

.large-status-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.large-status-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.large-status-select {
  padding: 0.5rem;
  font-size: 1rem;
}

.large-band-select {
  padding: 0.5rem;
  font-size: 1rem;
  min-width: 200px;
}

.large-note-input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  resize: vertical;
  height: 80px;
  margin-top: 0.5rem;
}

.band-search-container {
  position: relative;
  min-width: 200px;
}

.band-search-input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.band-search-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.band-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.band-dropdown.show {
  display: block;
}

.band-option {
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.band-option:hover,
.band-option.highlighted {
  background-color: #f5f5f5;
}

.band-option.used {
  background-color: #fff3cd;
  border-left: 3px solid #ffc107;
}

.band-option.used:hover,
.band-option.used.highlighted {
  background-color: #ffeaa7;
}

.band-usage-count {
  color: #666;
  font-size: 0.8rem;
  margin-left: auto;
}

.band-used-icon {
  color: #ffc107;
}

.image-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  cursor: pointer;
  transition: transform 0.2s;
}

.image-item:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-item.selected {
  border: 2px solid #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.solved {
  background-color: #d4edda !important;
  border-color: #c3e6cb !important;
}

.unsolved {
  background-color: #fff3cd !important;
  border-color: #ffeaa7 !important;
}

