/* Body background styling */
body {
  background-image: url('../img/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

/* SIMPLIFIED Gallery Design - Clean & Consistent */
.image-gallery,
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 20px !important;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .image-gallery,
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .image-gallery,
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .image-gallery,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
    padding: 16px;
  }
}

.gallery-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.gallery-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

/* AI Analyzed Indicator */
.ai-analyzed-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(34, 197, 94, 0.9);
  color: white;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.ai-analyzed-indicator:hover {
  background: rgba(34, 197, 94, 1);
  transform: scale(1.05);
}

.ai-analyzed-indicator .ai-icon {
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Alternative text-based indicator (uncomment if preferred over robot emoji) */
/*
.ai-analyzed-indicator::after {
  content: "AI";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
*/

/* Enhanced Analysis Overlay System */
.analysis-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.analysis-overlay:hover {
  transform: scale(1.05);
}

/* AI Analyzed Overlay (Green) */
.overlay-ai-analyzed {
  background: rgba(34, 197, 94, 0.9);
}

.overlay-ai-analyzed:hover {
  background: rgba(34, 197, 94, 1);
}

/* Manual Edits Overlay (Blue) */
.overlay-manually-edited {
  background: rgba(59, 130, 246, 0.9);
}

.overlay-manually-edited:hover {
  background: rgba(59, 130, 246, 1);
}

/* AI & USER ENRICHED Overlay (Purple Gradient) */
.overlay-ai-user-enriched {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
  border: 1px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 2px 4px rgba(147, 51, 234, 0.2);
}

.overlay-ai-user-enriched:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 1) 0%, rgba(79, 70, 229, 1) 100%);
  box-shadow: 0 3px 6px rgba(147, 51, 234, 0.3);
  transform: translateY(-1px);
}

/* Needs Analysis Overlay (Orange) */
.overlay-needs-analysis {
  background: rgba(245, 158, 11, 0.9);
}

.overlay-needs-analysis:hover {
  background: rgba(245, 158, 11, 1);
}

/* Processing Status Overlays */
.overlay-uploaded {
  background: rgba(75, 85, 99, 0.9);
}

.overlay-uploaded:hover {
  background: rgba(75, 85, 99, 1);
}

.overlay-processing {
  background: rgba(124, 58, 237, 0.9);
}

.overlay-processing:hover {
  background: rgba(124, 58, 237, 1);
}

.overlay-failed {
  background: rgba(239, 68, 68, 0.9);
}

.overlay-failed:hover {
  background: rgba(239, 68, 68, 1);
}

/* Processing animation for the processing overlay */
.overlay-processing .overlay-icon {
  animation: spin 1s linear infinite;
}

/* Clickable overlay styles */
.overlay-uploaded,
.overlay-failed {
  cursor: pointer;
}

.overlay-uploaded:hover,
.overlay-failed:hover {
  transform: scale(1.1);
}

.analysis-overlay .overlay-icon {
  font-size: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.analysis-overlay .overlay-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive overlay text - hide on smaller screens */
@media (max-width: 768px) {
  .analysis-overlay .overlay-text {
    display: none;
  }
  
  .analysis-overlay {
    padding: 6px 8px;
    gap: 0;
  }
  
  .analysis-overlay .overlay-icon {
    font-size: 14px;
  }
}

/* Tag Overlay Styles */
.tag-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(139, 69, 19, 0.9);
  border-radius: 16px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.tag-overlay:hover {
  background: rgba(139, 69, 19, 1);
  transform: scale(1.05);
}

.tag-overlay .tag-icon {
  font-size: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.tag-overlay .tag-count {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  min-width: 12px;
  text-align: center;
}

/* ========================================
   FEEDBACK OVERLAY STYLES
   ======================================== */

/* Feedback overlay container - positioned at bottom-right */
.feedback-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show feedback on hover */
.gallery-card:hover .feedback-overlay {
  opacity: 1;
}

/* Individual feedback buttons */
.feedback-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.feedback-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

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

/* Thumbs up button */
.feedback-thumbs-up.selected {
  background: rgba(34, 197, 94, 0.9);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.feedback-thumbs-up:hover {
  background: rgba(34, 197, 94, 0.8);
  border-color: rgba(34, 197, 94, 0.6);
}

/* Thumbs down button */
.feedback-thumbs-down.selected {
  background: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.feedback-thumbs-down:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.6);
}

/* Submitting state animation */
.feedback-btn.submitting {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Feedback toast notifications */
.feedback-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feedback-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.feedback-toast-success {
  border-left: 4px solid #22c55e;
}

.feedback-toast-error {
  border-left: 4px solid #ef4444;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .feedback-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .feedback-toast {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    transform: translateY(-100px);
  }
  
  .feedback-toast.show {
    transform: translateY(0);
  }
}

/* ========================================
   FEEDBACK COMMENT STYLES (MODAL ONLY)
   ======================================== */

/* Note: Gallery cards now only have simple thumbs up/down buttons.
   Comment functionality is reserved for the modal interface. */

/* ========================================
   ANIMAL TAGS DISPLAY STYLES
   ======================================== */

/* Container for tags display */
.tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

/* Individual animal tag styling - Modern Badge Design */
.animal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 
    0 2px 8px rgba(102, 126, 234, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Hover effect for animal tags */
.animal-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 6px 20px rgba(102, 126, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

/* Shimmer effect for animal tags */
.animal-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.animal-tag:hover::before {
  left: 100%;
}

/* Tag icon styling */
.animal-tag .tag-icon {
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Tag text styling */
.animal-tag .tag-text {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* No tags message styling */
.no-tags-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  margin: 12px 0;
}

.no-tags-icon {
  font-size: 24px;
  opacity: 0.5;
  filter: grayscale(1);
}

.no-tags-text {
  font-weight: 600;
  color: #64748b;
  font-size: 14px;
}

.no-tags-suggestion {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .animal-tag {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 16px;
  }
  
  .animal-tag .tag-icon {
    font-size: 12px;
  }
  
  .no-tags-message {
    padding: 16px;
  }
  
  .no-tags-icon {
    font-size: 20px;
  }
}

/* Alternative color schemes for variety */
.animal-tag.variant-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.animal-tag.variant-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.animal-tag.variant-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.animal-tag.variant-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.animal-tag.variant-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Tag Management Modal Styles */
.tag-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000; /* Higher than image modal (1000) */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.tag-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

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

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

.tag-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.tag-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tag-modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.tag-modal-body {
  padding: 24px;
}

.tag-image-preview {
  margin-bottom: 20px;
  text-align: center;
}

.tag-preview-img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tag-input-section {
  margin-bottom: 24px;
}

.tag-input-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

.tag-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-input-group input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.tag-input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tag-input-group button {
  padding: 10px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tag-input-group button:hover {
  background: #2563eb;
}

.tag-suggestions {
  margin-top: 12px;
}

.tag-suggestions small {
  color: #6b7280;
  font-size: 12px;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.suggestion-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-tag:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* Enhanced suggestion sections */
.existing-tags-section,
.ai-suggestions-section {
  margin-bottom: 15px;
}

.suggestion-section-header {
  margin-bottom: 8px;
}

.suggestion-section-header small {
  font-weight: 600;
  color: #6b7280;
}

.existing-tags-section .suggestion-section-header small {
  color: #059669; /* Green for existing tags */
}

.ai-suggestions-section .suggestion-section-header small {
  color: #7c3aed; /* Purple for AI suggestions */
}

.existing-tag {
  background: #dcfdf7;
  border: 1px solid #a7f3d0;
  color: #047857;
  position: relative;
  padding-right: 30px; /* Make room for count badge */
}

.existing-tag:hover {
  background: #a7f3d0;
  border-color: #6ee7b7;
}

.existing-tag .tag-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #059669;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1;
}

.ai-suggestion {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}

.ai-suggestion:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.current-tags-section label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #374151;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  background: #8b4513;
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-item .tag-text {
  flex: 1;
}

.tag-item .tag-remove {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.tag-item .tag-remove:hover {
  background: rgba(255, 255, 255, 0.3);
}

.no-tags {
  color: #6b7280;
  font-style: italic;
  margin: 0;
  padding: 12px;
  text-align: center;
  background: #f9fafb;
  border-radius: 8px;
}

.tag-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid #e5e7eb;
}

.tag-modal-footer button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* Tags Section in Image Modal */
.tags-section {
  background: #f5f5dc; /* Same beige background as other sections */
  border: 1px solid #d4b896; /* Same border as other sections */
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.tags-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tags-section .section-header h4 {
  margin: 0;
  color: #8b4513;
  font-size: 16px;
  font-weight: 600;
}

.tags-section .section-content {
  color: #5d4e37;
}

.tags-section .section-values {
  margin-bottom: 12px;
}

.tags-section .tag-value {
  background: #8b4513;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.tags-section .no-tags-message {
  color: #6b7280;
  font-style: italic;
  margin: 0;
  padding: 8px 0;
}

.tags-help {
  padding-top: 8px;
  border-top: 1px solid #d4b896; /* Match section border color */
}

.tags-help small {
  color: #8b7355;
  font-size: 11px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-metadata {
  padding: 16px;
  background: white;
}

.gallery-species {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-date {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.species-icon {
  font-size: 16px;
}

/* Modern Tooltip Styles */
.image-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
  max-width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}

.tooltip-row:last-child {
  margin-bottom: 0;
}

.tooltip-icon {
  font-size: 16px;
  opacity: 0.9;
  min-width: 18px;
  margin-top: 1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.tooltip-content {
  flex: 1;
  font-weight: 500;
}

/* Enhanced Mobile Tooltip */
.mobile-tooltip {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  color: white;
  padding: 20px;
  border-radius: 16px;
  z-index: 1001;
  transform: translateY(100px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-tooltip.show {
  transform: translateY(0);
}

/* Modern Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  gap: 8px;
}

.pagination-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 12px 16px;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 14px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pagination-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Structured AI Analysis Display */
.detail-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #4CAF50;
}

.detail-section h4 {
  color: #2E7D32;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e0e0e0;
}

.animal-item {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
}

.animal-item:last-child {
  margin-bottom: 0;
}

.animal-item p {
  margin: 5px 0;
}

.environment-info {
  border-left-color: #2196F3;
}

.environment-info h4 {
  color: #0D47A1;
}

.hunting-insights {
  border-left-color: #FF9800;
}

.hunting-insights h4 {
  color: #E65100;
}

.hunting-insights ul {
  margin-top: 5px;
  padding-left: 20px;
}

.hunting-insights li {
  margin-bottom: 5px;
}

.detection-section {
  margin-bottom: 20px;
}

.detection-section h3 {
  margin-top: 0;
  color: #333;
}

.demographics {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}

.no-analysis {  text-align: center;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #555555;
}

.btn-analyze-image {
  margin-top: 10px;
}

/* Enhanced Analysis Sections */
.weather-conditions, .photo-details {
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.weather-conditions h3, .photo-details h3 {
  margin: 0 0 10px 0;
  color: #007bff;
  font-size: 1.1em;
  font-weight: 600;
}

.weather-conditions div, .photo-details div {
  margin-bottom: 8px;
  font-size: 1em;
}

.weather-conditions strong, .photo-details strong {
  color: #495057;
  font-weight: 600;
}

/* Weather-specific styling */
.weather-conditions:not(.enhanced) {
  border-left-color: #28a745;
}

.weather-conditions:not(.enhanced) h3 {
  color: #28a745;
}

/* Photo details-specific styling */
.photo-details {
  border-left-color: #6c757d;
}

.photo-details h3 {
  color: #6c757d;
}

/* Modal styles for image display */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;  z-index: 1000;
}

.modal.show,
.modal[style*="display: block"],
.modal[style*="display: flex"] {
  display: flex !important;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  overflow-y: auto;
  max-width: 60%;
  width: 98%;
  max-height: 95vh;
  position: relative;
}

/* Force modal width with higher specificity */
#image-modal .modal-content {
  max-width: 60% !important;
  width: 98% !important;
  max-height: 95vh !important;
}

/* Override for modal-large to allow full content scrolling */
.modal-content.modal-large {
  max-height: 95vh !important;
  overflow-y: auto !important;
  max-width: 1600px !important;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 1);
}

/* Enhanced modal layout - Clean and organized design */
.image-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 500px;
  padding: 0 0 0 0; /* Remove default padding, let sections handle their own */
}

/* Full-width photo section at top */
.image-detail-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  padding: 16px;
  min-height: 400px;
  margin: 20px 20px 0 20px; /* Add side margins */
}

.image-detail-photo img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}

/* Image navigation buttons */
.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.image-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.image-nav-btn:disabled {
  background: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
  transform: translateY(-50%);
}

.image-nav-btn.prev-btn {
  left: 20px;
}

.image-nav-btn.next-btn {
  right: 20px;
}

.image-nav-btn.hidden {
  display: none;
}

/* Responsive navigation buttons */
@media (max-width: 768px) {
  .image-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .image-nav-btn.prev-btn {
    left: 10px;
  }
  
  .image-nav-btn.next-btn {
    right: 10px;
  }
}

/* Modal action buttons section */
.modal-delete-section {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(to bottom, #f8f9fa, #f1f3f4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  min-height: 60px;
}

/* Action buttons container */
.modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.clear-updates-btn {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.clear-updates-btn:hover {
  background: linear-gradient(135deg, #e0a800, #d39e00);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.25);
}

.delete-picture-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 110px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.delete-picture-btn:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
}

.delete-picture-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.delete-picture-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 1px 2px rgba(108, 117, 125, 0.2);
  opacity: 0.7;
}

/* Modal info text */
.modal-info-text {
  color: #6c757d;
  font-size: 12px;
  font-style: italic;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-delete-section {
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
  }
  
  .modal-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    flex-direction: column;
    gap: 8px;
  }
  
  .clear-updates-btn,
  .delete-picture-btn {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 130px;
    width: 100%;
    max-width: 200px;
  }
  
  .modal-info-text {
    text-align: center;
    order: -1;
  }
}

/* Photo metadata section - Cleaner design */
.image-metadata-section {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  padding: 16px;
  margin: 0 20px;
  border-left: 4px solid #007bff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.image-metadata-section h4 {
  color: #007bff;
  margin: 0 0 12px 0;
  font-size: 1.05em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-metadata-section h4::before {
  content: "📷";
  font-size: 1.1em;
}

/* Metadata grid styling - Improved organization */
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.metadata-item {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  border: 1px solid rgba(0, 123, 255, 0.15);
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.metadata-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 123, 255, 0.25);
  transform: translateY(-1px);
}

.metadata-item strong {
  color: #007bff;
  margin-right: 6px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .image-metadata-section {
    margin: 0 12px;
  }
  
  .metadata-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .metadata-item {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Hunting insights section - Refined styling */
.hunting-insights-section {
  background: linear-gradient(145deg, #fff3cd, #ffeaa7);
  border-radius: 8px;
  padding: 16px;
  margin: 0 20px;
  border-left: 4px solid #FF9800;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
}

.hunting-insights-section h4 {
  color: #E65100;
  margin: 0 0 12px 0;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hunting-insights-section h4::before {
  content: "🎯";
  font-size: 1.2em;
}

/* Two-column layout for remaining content - Improved */
.image-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 20px;
}

.image-detail-left,
.image-detail-right {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .hunting-insights-section {
    margin: 0 12px;
  }
  
  .image-detail-content {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 12px;
  }
}

/* Legacy container for backward compatibility */
.image-detail-container {
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 30px;
  min-height: 500px;
}

.image-detail-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.image-detail-view img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

.image-detail-info {
  padding: 20px;
  background-color: #fff;
  /* Remove individual scroll - let the whole modal scroll */
}

/* Weather conditions styling */
.weather-conditions {
  margin-top: 15px;
  padding: 15px;
  background-color: #e8f5e8;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.weather-conditions h4 {
  margin: 0 0 12px 0;
  color: #28a745;
  font-size: 1.2em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-conditions h4::before {
  content: "🌤️";
  font-size: 1.2em;
}

.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.weather-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #d4edda;
}

.weather-item:last-child {
  border-bottom: none;
}

.weather-label {
  font-weight: 600;
  color: #495057;
  font-size: 1em;
}

.weather-value {
  color: #28a745;
  font-weight: 500;
  font-size: 1em;
}

/* Temperature conflict resolution indicator */
.conflict-resolved {
  color: #ffc107;
  font-size: 0.9em;
  font-weight: 600;
  margin-left: 5px;
  cursor: help;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.conflict-resolved:hover {
  color: #e0a800;
}

/* Bulk Actions Panel */
.bulk-actions-panel {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bulk-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.selection-info {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.selection-controls {
  display: flex;
  gap: 10px;
}

.btn-selection {  background-color: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-selection:hover {
  background-color: #5a6268;
}

.bulk-actions-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-bulk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

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

.btn-bulk-reanalyze {
  background-color: #007bff;
  color: white;
}

.btn-bulk-reanalyze:hover:not(:disabled) {
  background-color: #0056b3;
}

.btn-bulk-delete {
  background-color: #dc3545;
  color: white;
}

.btn-bulk-delete:hover:not(:disabled) {
  background-color: #c82333;
}

.btn-bulk svg {
  width: 16px;
  height: 16px;
}

/* Progress Tracking */
.progress-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

/* Bulk Progress Container */
.bulk-progress {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 10px 25px -5px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.bulk-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  background-size: 200% 100%;
  animation: progressGradient 3s ease infinite;
}

.progress-bar-container {
  background-color: #e9ecef;
  border-radius: 12px;
  height: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.15),
    0 2px 8px rgba(0,0,0,0.1),
    0 4px 16px rgba(0,0,0,0.05);
  border: 2px solid #fff;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(45deg, #007bff, #0056b3);
  background-size: 200% 100%;
  animation: progressGradient 3s ease infinite;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  border-radius: 10px;
  position: relative;
  box-shadow: 
    0 1px 3px rgba(0, 123, 255, 0.4),
    0 2px 6px rgba(0, 86, 179, 0.3);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.4), 
    rgba(255,255,255,0.6), 
    rgba(255,255,255,0.4), 
    transparent);
  animation: progressShimmer 2s infinite;
  border-radius: 10px;
}

@keyframes progressGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  font-size: 15px;
  color: #374151;
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.025em;
}

/* Image Selection Checkbox */
.gallery-card {
  position: relative;
}

.image-selection {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-card:hover .image-selection,
.gallery-card.selected .image-selection {
  opacity: 1;
}

.gallery-card.selected {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.image-checkbox {
  cursor: pointer;
  accent-color: #e5e7e9;
}

/* Bulk Operations Styles - Updated for HTML template structure */
.bulk-actions-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.selection-info {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.selection-info .btn-link {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 10px;
  font-size: 14px;
}

.selection-info .btn-link:hover {
  color: #0056b3;
}

.bulk-action-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.bulk-action-buttons button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.bulk-action-buttons .primary-btn {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.bulk-action-buttons .primary-btn:hover:not(:disabled) {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-1px);
}

.bulk-action-buttons .danger-btn {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.bulk-action-buttons .danger-btn:hover:not(:disabled) {
  background: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
}

.bulk-action-buttons button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.bulk-action-buttons button svg {
  flex-shrink: 0;
}

/* Spinner for loading states */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Spinning animation for loading states */
.spinning {
  animation: spin 1s linear infinite;
}

/* Processing button state */
.btn-bulk.processing {
  background: linear-gradient(45deg, #4f46e5, #7c3aed) !important;
  color: white !important;
  position: relative;
  overflow: hidden;
}

.btn-bulk.processing::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsive adjustments for bulk controls */
@media (max-width: 768px) {
  .bulk-actions-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bulk-action-buttons {
    justify-content: center;
  }
  
  .bulk-action-buttons button {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 1024px) {
  /* Legacy layout adjustments */
  .image-detail-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* New layout adjustments */
  .image-detail-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
    .modal-content {
    max-width: 98%;
    width: 98%;
  }
  
  .image-detail-view {
    order: 1;
  }
  
  .image-detail-info {
    order: 2;
    /* Remove height constraints for unified scrolling */
  }
}

@media (max-width: 768px) {
  .modal-content {
    margin: 20px auto;
    max-height: 90vh;
  }
  
  .weather-grid {
    grid-template-columns: 1fr;
  }
  
  /* New layout mobile adjustments */
  .image-detail-photo {
    min-height: 250px;
    padding: 15px;
  }
  
  .image-detail-photo img {
    max-height: 300px;
  }
  
  .image-detail-layout {
    gap: 15px;
  }
  
  .image-metadata-section,
  .hunting-insights-section {
    padding: 12px;
  }
  
  .image-detail-left,
  .image-detail-right {
    padding: 12px;
  }
  
  /* Legacy view adjustments */
  .image-detail-view img {
    max-height: 300px;
  }
}

/* Enhanced Weather Display Styles */
.weather-conditions.enhanced {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fdf4 100%);
  border-left: 4px solid #047857;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
  position: relative;
  overflow: hidden;
}

.weather-conditions.enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(5, 150, 105, 0.05);
  border-radius: 50%;
  transform: translate(20px, -20px);
}

.weather-conditions.enhanced h4 {
  color: #047857;
  font-size: 1.2em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-conditions.enhanced h4::before {
  content: "🌦️";
  font-size: 1.3em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.weather-date-info {
  background: rgba(5, 150, 105, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.date-used {
  font-size: 0.85em;
  color: #047857;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-used::before {
  content: "📅";
  font-size: 1em;
}

.weather-grid.enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.weather-item.featured {
  grid-column: 1 / -1;
  background: rgba(5, 150, 105, 0.1);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  margin-bottom: 8px;
}

.weather-item.featured .weather-label {
  font-size: 1em;
  color: #047857;
  font-weight: 700;
}

.weather-item.featured .weather-value {
  font-size: 1.1em;
  color: #047857;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.weather-conditions.enhanced .weather-item {
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(5, 150, 105, 0.15);
  transition: all 0.2s ease;
}

.weather-conditions.enhanced .weather-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
}

.weather-conditions.enhanced .weather-label {
  font-weight: 600;
  color: #047857;
  font-size: 0.9em;
  text-transform: capitalize;
}

.weather-conditions.enhanced .weather-value {
  color: #047857 !important;
  font-weight: 600;
  font-size: 0.95em;
  text-align: right;
}

/* Enhanced weather display - ensure all values are visible */
.weather-conditions.enhanced .weather-item .weather-value,
.weather-conditions.enhanced .weather-section .weather-value,
.weather-conditions.enhanced.two-section .weather-value {
  color: #047857 !important;
}

/* Fallback Weather Display */
.weather-conditions.fallback {
  background: linear-gradient(135deg, #fef3c7 0%, #fef7cd 100%);
  border-left: 4px solid #f59e0b;
  position: relative;
}

.weather-conditions.fallback h4 {
  color: #d97706;
}

.weather-conditions.fallback h4::before {
  content: "⚠️";
}

.weather-note {
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #92400e;
  margin-bottom: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.weather-note::before {
  content: "ℹ️ ";
  margin-right: 4px;
}

/* Enhanced responsive design for weather */
@media (max-width: 768px) {
  .weather-grid.enhanced {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .weather-item.featured {
    grid-column: 1;
  }
  
  .weather-date-info {
    padding: 6px 8px;
  }
    .date-used {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .weather-conditions.enhanced {
    padding: 12px;
  }
  
  .weather-conditions.enhanced h4 {
    font-size: 1.1em;
  }
  
  .weather-item.featured .weather-value {
    font-size: 1em;
  }
}

/* Enhanced Two-Section Weather Display Styles */

/* Main two-section container - Override base weather styles */
.weather-conditions.enhanced.two-section {
  background: linear-gradient(135deg, #f0fdfa 0%, #fdf5ec 100%) !important;
  border: 1px solid #a7f3d0 !important;
  border-left: 4px solid #10b981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  position: relative;
  margin-top: 15px;
  padding: 20px;
  border-radius: 12px;
}

.weather-conditions.enhanced.two-section h3,
.weather-conditions.enhanced.two-section h4 {
  color: #047857 !important;
}

.weather-conditions.enhanced.two-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  transform: translate(30px, -30px);
  pointer-events: none;
}

/* Weather sections container */
.weather-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Individual weather section styling */
.weather-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.weather-section:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Daily weather section specific styling */
.weather-section.daily-weather {
  border-left: 4px solid #047857;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.weather-section.daily-weather h4 {
  color: #047857 !important;
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid rgba(5, 150, 105, 0.2);
  padding-bottom: 8px;
}

.weather-section.daily-weather h4::before {
  content: "📅";
  font-size: 1.3em;
}

/* Ensure hourly weather section is always visible when present */
.weather-section.hourly-weather {
  border-left: 4px solid #0d9488;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
  min-height: 100px; /* Ensure some height even if content is minimal */
  display: block !important; /* Force visibility */
  opacity: 1 !important;
}

.weather-section.hourly-weather h4 {
  color: #047857 !important;
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid rgba(13, 148, 136, 0.2);
  padding-bottom: 8px;
}

.weather-section.hourly-weather h4::before {
  content: "⏰";
  font-size: 1.3em;
}

/* Debug styling for hourly section */
.weather-section.hourly-weather::after {
  content: "Hourly Section Loaded";
  position: absolute;
  top: 5px;
  right: 5px;
  background: #0d9488;
  color: white;  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 500;
}

/* Date/Time info styling */
.weather-date-info, .weather-time-info {
  background: rgba(5, 150, 105, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.date-used, .time-used {
  font-size: 0.85em;
  color: #047857;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-used::before {
  content: "📅";
  font-size: 1em;
}

.time-used::before {
  content: "🕐";
  font-size: 1em;
}

/* Weather grid layouts */
.weather-grid.daily {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.weather-grid.hourly {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

/* Weather item styling for two-section display */
.weather-section .weather-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(5, 150, 105, 0.15);
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.weather-section .weather-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
}

/* Featured daily weather item */
.weather-section .weather-item.daily-featured {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
  padding: 16px 18px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 16px;
  font-size: 1.05em;
  border-radius: 10px;
}

.weather-section .weather-item.daily-featured .weather-label {
  font-size: 1.1em;
  color: #047857;
  font-weight: 700;
}

.weather-section .weather-item.daily-featured .weather-value {
  font-size: 1.15em;
  color: #047857;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.weather-section .weather-item.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
  padding: 14px 16px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 8px;
  font-size: 1.05em;
}

.weather-section .weather-item.featured .weather-label {
  font-size: 1.1em;
  color: #047857;
  font-weight: 700;
}

.weather-section .weather-item.featured .weather-value {
  font-size: 1.15em;
  color: #047857;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Exact time match indicators */
.exact-match-indicator {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #86efac;
  font-size: 0.9em;
  color: #15803d;
  font-weight: 600;
  text-align: center;
}

.exact-match-indicator::before {
  content: "🎯 ";
  margin-right: 4px;
}

/* Contextual data indicators */
.contextual-indicator {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 8px 12px;  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #fbbf24;
  font-size: 1em;
  color: #92400e;
  font-weight: 600;
  text-align: center;
}

.contextual-indicator::before {
  content: "🔍 ";
  margin-right: 4px;
}

/* Exact time weather items */
.weather-item.exact-time {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  position: relative;
}

.weather-item.exact-time::before {
  content: "🎯";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(34, 197, 94, 0.9);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;  justify-content: center;
  font-size: 0.85em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contextual hours grid */
.contextual-hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.contextual-hour-block {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
}

.contextual-hour-block:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.1);
}

.contextual-hour-block.target-hour {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  position: relative;
}

.contextual-hour-block.target-hour::before {
  content: "🎯 TARGET";
  position: absolute;
  top: -8px;
  left: 8px;
  background: #f59e0b;
  color: white;
  padding: 2px 6px;  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contextual-hour-title {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
  font-size: 1em;
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.mini-weather-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-weather-item {
  font-size: 0.9em;
  color: #555555;
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Weather labels and values in sections */
.weather-section .weather-label {
  font-weight: 600;
  color: #047857;
  font-size: 0.95em;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather-section .weather-value {
  color: #047857;
  font-weight: 600;
  font-size: 0.95em;
  text-align: right;
  white-space: nowrap;
}

/* Enhanced weather display value colors */
.weather-conditions.enhanced.two-section .weather-section .weather-value {
  color: #047857 !important;
}

/* Section container styling */
.section-container {
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

/* Section header with button layout */
.section-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
}

.section-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  flex: 1;
}

/* Edit button styling */
.section-edit-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: #3b82f6;
  color: white;
  /* order: -1 removed to allow button to appear on the right */
}

.section-edit-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Section content styling */
.section-content {
  padding: 16px;
}

/* Override message styling */
.section-override-message {
  background: #fef3c7;
  color: #92400e;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  border: 1px solid #fbbf24;
}

/* Info content styling */
.animal-info,
.environmental-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.animal-info div,
.environmental-info div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
}

.animal-info div:last-child,
.environmental-info div:last-child {
  border-bottom: none;
}

.animal-info strong,
.environmental-info strong {
  color: var(--text-color);
  min-width: 100px;
  flex-shrink: 0;
}

/* Style for environmental values */
.environmental-info .env-value {
  text-align: right;
  font-weight: 500;
  color: var(--primary-color);
  flex-grow: 1;
  margin-left: 10px;
}

/* Style for animal analysis values */
.animal-info .animal-value {
  text-align: right;
  font-weight: 500;
  color: var(--primary-color);
  flex-grow: 1;
  margin-left: 10px;
}

/* Special styling for confidence values */
.animal-info .confidence-ai {
  color: #28a745 !important;
  font-weight: bold;
}

.animal-info .confidence-manual {
  color: #dc3545 !important;
  font-weight: bold;
}

/* Dark Theme Support */
.dark-theme {
  background-color: var(--dark-bg-primary, #121212);
  color: var(--dark-text-primary, #ffffff);
}

.dark-theme .dashboard-container,
.dark-theme .gallery-container {
  background-color: var(--dark-bg-secondary, #1e1e1e);
  color: var(--dark-text-primary, #ffffff);
}

.dark-theme .dashboard-header,
.dark-theme .gallery-header {
  background-color: var(--dark-surface-1, #2c2c2c);
  border-bottom-color: var(--dark-border, #404040);
}

.dark-theme .section-header {
  background-color: var(--dark-surface-1, #2c2c2c);
  border-bottom-color: var(--dark-border, #404040);
}

.dark-theme .section-header h2 {
  color: var(--dark-text-primary, #ffffff);
}

.dark-theme .filter-container {
  background-color: var(--dark-surface-2, #383838);
  border-color: var(--dark-border, #404040);
}

.dark-theme .species-filter select {
  background-color: var(--dark-surface-2, #383838);
  border-color: var(--dark-border, #404040);
  color: var(--dark-text-primary, #ffffff);
}

.dark-theme .species-filter select:focus {
  border-color: var(--dark-primary, #66BB6A);
}

.dark-theme .reset-filter-btn {
  background-color: var(--dark-surface-2, #383838);
  color: var(--dark-text-primary, #ffffff);
  border-color: var(--dark-border, #404040);
}

.dark-theme .reset-filter-btn:hover {
  background-color: var(--dark-surface-3, #404040);
}

.dark-theme .image-item {
  background-color: var(--dark-surface-1, #2c2c2c);
  border-color: var(--dark-border, #404040);
}

.dark-theme .image-info {
  background-color: rgba(44, 44, 44, 0.95);
  color: var(--dark-text-primary, #ffffff);
}

.dark-theme .chart-container {
  background-color: var(--dark-surface-1, #2c2c2c);
  border-color: var(--dark-border, #404040);
}

.dark-theme .stats-grid .stat-card {
  background-color: var(--dark-surface-1, #2c2c2c);
  border-color: var(--dark-border, #404040);
}

.dark-theme .stat-card h3 {
  color: var(--dark-text-primary, #ffffff);
}

.dark-theme .stat-card .stat-number {
  color: var(--dark-primary, #66BB6A);
}

/* Thumbnail size variations */
.thumbnail-small .image-item {
  width: 150px;
  height: 150px;
}

.thumbnail-medium .image-item {
  width: 200px;
  height: 200px;
}

.thumbnail-large .image-item {
  width: 250px;
  height: 250px;
}

/* Additional responsive adjustments for thumbnail sizes */
@media (max-width: 768px) {
  .thumbnail-small .image-item {
    width: 120px;
    height: 120px;
  }
  
  .thumbnail-medium .image-item {
    width: 150px;
    height: 150px;
  }
  
  .thumbnail-large .image-item {
    width: 180px;
    height: 180px;
  }
}

/* Multi-Species Analysis Display */
.animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.animal-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.animal-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.animal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.animal-icon {
  font-size: 24px;
}

.animal-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
}

.confidence-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: auto;
}

.animal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 14px;
}

.animal-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.animal-detail strong {
  color: #475569;
  font-weight: 500;
}

.animal-detail span {
  color: #64748b;
}

.species-summary {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.species-summary h4 {
  margin: 0 0 8px 0;
  color: #0c4a6e;
  font-size: 16px;
  font-weight: 600;
}

.species-icons {
  font-size: 24px;
  margin-bottom: 4px;
}

.species-count {
  color: #0369a1;
  font-size: 14px;
  font-weight: 500;
}

/* Dark theme support for multi-species display */
.dark-theme .animal-card {
  background: #374151;
  border-color: #4b5563;
}

.dark-theme .animal-card:hover {
  background: #4b5563;
  border-color: #6b7280;
}

.dark-theme .animal-name {
  color: #f9fafb;
}

.dark-theme .animal-detail strong {
  color: #d1d5db;
}

.dark-theme .animal-detail span {
  color: #9ca3af;
}

.dark-theme .species-summary {
  background: #1e3a8a;
  border-color: #3b82f6;
}

.dark-theme .species-summary h4 {
  color: #dbeafe;
}

.dark-theme .species-count {
  color: #93c5fd;
}

/* Multi-Species Dropdown Styles */
.multi-species-selector {
  position: relative;
  width: 100%;
}

.species-dropdown-btn {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.species-dropdown-btn:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.species-dropdown-btn.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selected-species-display {
  flex: 1;
  text-align: left;
  color: #374151;
}

.selected-species-display.placeholder {
  color: #9ca3af;
}

.selected-species-display.selected {
  color: #374151;
  font-weight: 500;
}

.dropdown-arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
  font-size: 12px;
  color: #6b7280;
}

.species-dropdown-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.species-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
}

.species-dropdown-menu.show {
  display: block;
}

.species-option {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.species-option:last-child {
  border-bottom: none;
}

.species-option:hover {
  background-color: #f8fafc;
}

.species-option input[type="checkbox"] {
  margin-right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.species-option label {
  flex: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  margin: 0;
}

.species-emoji {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Dark theme support for dropdown */
.dark-theme .species-dropdown-btn {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

.dark-theme .species-dropdown-btn:hover,
.dark-theme .species-dropdown-btn.active {
  border-color: #3b82f6;
}

.dark-theme .selected-species-display.placeholder {
  color: #6b7280;
}

.dark-theme .selected-species-display.selected {
  color: #f9fafb;
}

.dark-theme .dropdown-arrow {
  color: #9ca3af;
}

.dark-theme .species-dropdown-menu {
  background: #374151;
  border-color: #4b5563;
}

.dark-theme .species-option {
  border-bottom-color: #4b5563;
}

.dark-theme .species-option:hover {
  background-color: #4b5563;
}

/* Dark Theme - Bulk Actions Panel */
.dark-theme .bulk-actions-panel {
  background-color: #2c2c2c !important;
  border: 1px solid #404040 !important;
  color: #ffffff !important;
}

.dark-theme .selection-info {
  color: #cccccc !important;
}

.dark-theme .btn-selection {
  background-color: #383838 !important;
  color: #ffffff !important;
  border: 1px solid #404040 !important;
}

.dark-theme .btn-selection:hover {
  background-color: #404040 !important;
}

.dark-theme .btn-bulk-reanalyze {
  background-color: #1976d2 !important;
  color: #ffffff !important;
}

.dark-theme .btn-bulk-reanalyze:hover:not(:disabled) {
  background-color: #1565c0 !important;
}

.dark-theme .btn-bulk-delete {
  background-color: #d32f2f !important;
  color: #ffffff !important;
}

.dark-theme .btn-bulk-delete:hover:not(:disabled) {
  background-color: #b71c1c !important;
}

.dark-theme .progress-container {
  border-top: 1px solid #404040 !important;
}

.dark-theme .bulk-progress {
  background: linear-gradient(135deg, #2c2c2c 0%, #383838 100%) !important;
  border: 2px solid #404040 !important;
}

.dark-theme .progress-bar-container {
  background-color: #404040 !important;
  border: 2px solid #555555 !important;
}

.dark-theme .progress-text {
  color: #ffffff !important;
}

.dark-theme .image-selection {
  background-color: rgba(44, 44, 44, 0.9) !important;
}

/* Dark Theme - Gallery Filters */
.dark-theme .gallery-filters {
  background: #2c2c2c !important;
  border: 1px solid #404040 !important;
  color: #ffffff !important;
}

.dark-theme .filter-group label {
  color: #ffffff !important;
}

.dark-theme .filter-select,
.dark-theme .filter-input {
  background: #383838 !important;
  border: 2px solid #404040 !important;
  color: #ffffff !important;
}

.dark-theme .filter-select:focus,
.dark-theme .filter-input:focus {
  border-color: #66BB6A !important;
  box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1) !important;
}

.dark-theme .filter-input::placeholder {
  color: #cccccc !important;
}

.dark-theme #clear-filters-btn {
  background: #383838 !important;
  border: 2px solid #404040 !important;
  color: #ffffff !important;
}

.dark-theme #clear-filters-btn:hover {
  background: #404040 !important;
  border-color: #555555 !important;
}

/* Dark Theme - Gallery Image Modal */
.dark-theme #image-modal .modal-content {
  background-color: #2c2c2c !important;
  color: #ffffff !important;
}

.dark-theme .modal-close {
  background-color: rgba(44, 44, 44, 0.9) !important;
  color: #ffffff !important;
}

.dark-theme .modal-close:hover {
  background-color: rgba(44, 44, 44, 1) !important;
}

.dark-theme .image-detail-photo {
  background: linear-gradient(145deg, #383838, #2c2c2c) !important;
}

.dark-theme .modal-delete-section {
  background: linear-gradient(to bottom, #383838, #2c2c2c) !important;
  border-top: 1px solid #404040 !important;
}

.dark-theme .image-metadata-section {
  background: linear-gradient(145deg, #383838, #2c2c2c) !important;
  border-left: 4px solid #66BB6A !important;
}

.dark-theme .image-metadata-section h4 {
  color: #66BB6A !important;
}

.dark-theme .metadata-item {
  background: rgba(56, 56, 56, 0.8) !important;
  border: 1px solid rgba(102, 187, 106, 0.15) !important;
  color: #ffffff !important;
}

.dark-theme .metadata-item:hover {
  background: rgba(56, 56, 56, 0.95) !important;
  border-color: rgba(102, 187, 106, 0.25) !important;
}

.dark-theme .metadata-item strong {
  color: #66BB6A !important;
}

.dark-theme .hunting-insights-section {
  background: linear-gradient(145deg, #2c2c2c, #383838) !important;
  border-left: 4px solid #FFB74D !important;
  color: #ffffff !important;
}

.dark-theme .hunting-insights-section h4 {
  color: #FFB74D !important;
}

.dark-theme .image-detail-left,
.dark-theme .image-detail-right {
  background: #383838 !important;
  border: 1px solid #404040 !important;
  color: #ffffff !important;
}

.dark-theme .modal-info-text {
  color: #cccccc !important;
}

.dark-theme .species-option label {
  color: #f9fafb;
}

/* Scrollbar styling for dropdown menu */
.species-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.species-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.species-dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.species-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark-theme .species-dropdown-menu::-webkit-scrollbar-track {
  background: #1f2937;
}

.dark-theme .species-dropdown-menu::-webkit-scrollbar-thumb {
  background: #6b7280;
}

.dark-theme .species-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .species-dropdown-menu {
    max-height: 250px;
  }
  
  .species-option {
    padding: 12px 16px;
  }
  
  .species-option label {
    font-size: 15px;
  }
}
/* Gallery Filters - Simple & Clean */
.gallery-filters {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}


.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.filter-group.horizontal {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 500;
  font-size: 14px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-select, .filter-input {
  padding: 10px 12px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s ease;
  min-width: 150px;
}

.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-input::placeholder {
  color: #9ca3af;
}

#clear-filters-btn {
  padding: 10px 16px;
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

#clear-filters-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* Responsive filters */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .filter-group {
    min-width: unset;
  }
  
  .filter-select, .filter-input {
    min-width: unset;
    width: 100%;
  }
}

/* Processing Overlay Styles */
.processing-overlay {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.processing-overlay.unprocessed {
  background: rgba(255, 152, 0, 0.9);
  color: white;
  border: 1px solid rgba(255, 152, 0, 0.6);
}

.processing-overlay.processing {
  background: rgba(33, 150, 243, 0.9);
  color: white;
  border: 1px solid rgba(33, 150, 243, 0.6);
}

.processing-overlay.analyzed {
  background: rgba(76, 175, 80, 0.9);
  color: white;
  border: 1px solid rgba(76, 175, 80, 0.6);
}

.processing-overlay.error {
  background: rgba(244, 67, 54, 0.9);
  color: white;
  border: 1px solid rgba(244, 67, 54, 0.6);
  animation: pulse-error 0.5s ease-in-out;
}

.processing-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-error {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Processing overlay responsive design */
@media (max-width: 600px) {
  .processing-overlay {
    font-size: 8px;
    padding: 3px 6px;
    gap: 3px;
  }
  
  .processing-spinner {
    width: 10px;
    height: 10px;
  }
}

/* Edit icon button styling */
.edit-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.2s ease;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.edit-icon-btn:hover {
  opacity: 1;
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.1);
}

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

/* Capture time edit form styling */
.capture-time-edit-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.capture-time-input {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
  width: 180px;
}

.capture-time-save-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.capture-time-cancel-btn {
  background: #6b7280;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.capture-time-save-btn:hover {
  background: #059669;
}

.capture-time-cancel-btn:hover {
  background: #4b5563;
}

/* Context Menu Styles */
.context-menu {
  position: fixed;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  z-index: 10000;
  min-width: 180px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  backdrop-filter: blur(8px);
  animation: contextMenuFadeIn 0.15s ease-out;
}

@keyframes contextMenuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-2px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.context-menu-item {
  padding: 10px 16px;
  cursor: pointer;
  color: #374151;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
}

.context-menu-item:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.context-menu-item:active {
  background-color: #e5e7eb;
}

.context-menu-item:first-child {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.context-menu-item:last-child {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Divider between context menu items */
.context-menu-item + .context-menu-item {
  border-top: 1px solid #f3f4f6;
}

/* Prevent text selection on context menu */
.context-menu {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Disabled context menu item styles */
.context-menu-item.disabled {
  color: #999 !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background-color: transparent !important;
}

.context-menu-item.disabled:hover {
  background-color: transparent !important;
  color: #999 !important;
}

/* Gallery card hover effect enhancement for right-click indication */
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.gallery-card:active {
  transform: translateY(0);
}

/* ===========================================
   GALLERY LIST VIEW STYLES
   =========================================== */

.gallery-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: block !important; /* Override any grid display */
  grid-template-columns: none !important; /* Remove grid columns */
  gap: 0 !important; /* Remove grid gap */
}

.gallery-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.gallery-list-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.gallery-list-table th:first-child {
  border-top-left-radius: 12px;
}

.gallery-list-table th:last-child {
  border-top-right-radius: 12px;
}

.gallery-list-table td {
  padding: 3px 3px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.moon-illumination {
  font-size: 0.85em;
  color: #666;
  font-style: italic;
}

.moon-age {
  font-size: 0.85em;
  color: #666;
  font-style: italic;
}

.gallery-list-table tr:hover {
  background-color: #f9fafb;
}

.gallery-list-table tr.selected {
  background-color: #eff6ff;
}

.gallery-list-thumbnail {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-list-thumbnail:hover {
  transform: scale(1.1);
}

.gallery-list-species {
  font-weight: 600;
  color: #059669;
}

.gallery-list-location {
  color: #6b7280;
  font-size: 13px;
}

.gallery-list-date {
  color: #6b7280;
  font-size: 13px;
}

.gallery-list-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.gallery-list-status.processed {
  background-color: #d1fae5;
  color: #047857;
}

.gallery-list-status.unprocessed {
  background-color: #fef3c7;
  color: #92400e;
}

.gallery-list-status.processing {
  background-color: #dbeafe;
  color: #1d4ed8;
  animation: pulse 2s infinite;
}

.gallery-list-confidence {
  font-weight: 600;
}

.gallery-list-confidence.high {
  color: #047857;
}

.gallery-list-confidence.medium {
  color: #d97706;
}

.gallery-list-confidence.low {
  color: #dc2626;
}

.gallery-list-metadata {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.gallery-list-metadata strong {
  color: #374151;
}

/* New column styles */
.gallery-list-temperature {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.gallery-list-pressure {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.gallery-list-moonphase {
  font-size: 12px;
  color: #374151;
  line-height: 1.3;
  max-width: 120px;
}

.gallery-list-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery-list-actions button {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-list-actions .btn-view {
  background-color: #3b82f6;
  color: white;
}

.gallery-list-actions .btn-view:hover {
  background-color: #2563eb;
}

.gallery-list-actions .btn-analyze {
  background-color: #059669;
  color: white;
}

.gallery-list-actions .btn-analyze:hover {
  background-color: #047857;
}

.gallery-list-actions .btn-analyze:disabled {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Enhanced button states for list view AI analyze */
.gallery-list-actions .btn-analyze.processing {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  cursor: wait;
  pointer-events: none;
}

.gallery-list-actions .btn-analyze.analyzed {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  cursor: default;
  pointer-events: none;
}

.gallery-list-actions .btn-analyze.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  cursor: pointer;
  animation: shake 0.5s ease-in-out;
}

/* Spin animation for processing state */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Shake animation for error state */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.gallery-list-checkbox {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Responsive adjustments for list view */
@media (max-width: 1024px) {
  .gallery-list-table th,
  .gallery-list-table td {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .gallery-list-thumbnail {
    width: 50px;
    height: 38px;
  }
}

@media (max-width: 768px) {
  .gallery-list-table {
    font-size: 12px;
  }
  
  .gallery-list-table th,
  .gallery-list-table td {
    padding: 6px 8px;
  }
  
  .gallery-list-thumbnail {
    width: 40px;
    height: 30px;
  }
  
  .gallery-list-actions {
    flex-direction: column;
    gap: 4px;
  }
  
  .gallery-list-actions button {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* Hide certain columns on mobile */
@media (max-width: 640px) {
  .gallery-list-table .hide-mobile {
    display: none;
  }
}

/* Upload Tips Do's and Don'ts Table */
.upload-tips-section {
  margin: 20px 0 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.upload-tips-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.4em;
  color: #495057;
  text-align: center;
  font-weight: 600;
}

.tips-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.tips-column {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.tips-column h4 {
  margin: 0 0 15px 0;
  font-size: 1.2em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-dos h4 {
  color: #28a745;
}

.tips-donts h4 {
  color: #dc3545;
}

.tips-icon {
  font-size: 1.1em;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fa;
  font-size: 0.95em;
  line-height: 1.4;
  color: #495057;
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li strong {
  color: #343a40;
  font-weight: 600;
}

.tips-dos .tips-list li {
  position: relative;
  padding-left: 20px;
}

.tips-dos .tips-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: #28a745;
  font-weight: bold;
  font-size: 0.9em;
}

.tips-donts .tips-list li {
  position: relative;
  padding-left: 20px;
}

.tips-donts .tips-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  top: 8px;
  color: #dc3545;
  font-weight: bold;
  font-size: 0.9em;
}

/* Responsive design for tips table */
@media (max-width: 768px) {
  .tips-table {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .upload-tips-section {
    margin: 15px 0 20px 0;
    padding: 15px;
  }
  
  .tips-column {
    padding: 15px;
  }
  
  .tips-list li {
    font-size: 0.9em;
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  .upload-tips-section h3 {
    font-size: 1.2em;
  }
  
  .tips-column h4 {
    font-size: 1.1em;
  }
  
  .tips-list li {
    font-size: 0.85em;
  }
}

/* ========================================
   MODAL FEEDBACK STYLES
   ======================================== */

/* Modal feedback section */
.feedback-section {
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.feedback-section .section-header h4 {
  color: #374151;
  margin-bottom: 8px;
}

.feedback-section .section-description {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Modal feedback buttons container */
.modal-feedback-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

/* Individual modal feedback buttons */
.modal-feedback-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  min-width: 120px;
  justify-content: center;
}

.modal-feedback-btn:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-feedback-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-feedback-btn .feedback-icon {
  font-size: 18px;
}

.modal-feedback-btn .feedback-label {
  font-weight: 600;
}

/* Selected states */
.modal-feedback-btn.thumbs-up-btn.selected {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #22c55e;
  color: #15803d;
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}

.modal-feedback-btn.thumbs-down-btn.selected {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: #ef4444;
  color: #dc2626;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

/* Hover states for selected buttons */
.modal-feedback-btn.thumbs-up-btn.selected:hover {
  background: linear-gradient(135deg, #bbf7d0, #86efac);
  border-color: #16a34a;
}

.modal-feedback-btn.thumbs-down-btn.selected:hover {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border-color: #dc2626;
}

/* Submitting state */
.modal-feedback-btn.submitting {
  opacity: 0.7;
  animation: modalPulse 1s infinite;
}

@keyframes modalPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Feedback status */
.feedback-status {
  padding: 8px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  margin-bottom: 12px;
}

.feedback-status small {
  color: #0369a1;
  font-weight: 500;
}

/* Feedback help text */
.feedback-help {
  padding: 8px 12px;
  background: #fffbeb;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.feedback-help small {
  color: #92400e;
  font-style: italic;
}

/* Modal feedback comment section */
.modal-feedback-comment-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.modal-feedback-comment-section.hidden {
  display: none;
}

.modal-feedback-comment-section.visible {
  display: block;
}

.comment-label label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.modal-feedback-comment-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  background: #fafafa;
  color: #374151;
  transition: all 0.3s ease;
}

.modal-feedback-comment-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-feedback-comment-input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.modal-comment-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}

.modal-comment-save-status {
  color: #6b7280;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-comment-save-status.status-saving {
  color: #f59e0b;
}

.modal-comment-save-status.status-saved {
  color: #10b981;
}

.modal-comment-save-status.status-error {
  color: #ef4444;
}

.modal-comment-char-count {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 400;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .modal-feedback-buttons {
    flex-direction: column;
  }
  
  .modal-feedback-btn {
    width: 100%;
  }
  
  .feedback-section {
    margin-top: 16px;
    padding-top: 16px;
  }
}
