:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --chat-bg: #f1f5f9;
  --message-user: #667eea;
  --message-bot: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  min-height: 100vh;
  padding: 20px;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 30px 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 3s infinite;
}

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

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.header p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
  position: relative;
  z-index: 1;
}

.game-area {
  padding: 30px 25px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.image-section {
  flex: 1;
  min-width: 0;
}

.chat-section {
  flex: 1;
  min-width: 0;
}

.image-container {
  position: relative;
  margin-bottom: 25px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: scale(1.02);
}

#celeb-img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease;
  background: #f8fafc;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.chat-container {
  background: var(--chat-bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 280px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  position: relative;
}

.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.message {
  margin-bottom: 15px;
  animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-user {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.message-bot {
  display: flex;
  justify-content: flex-start;
}

.message-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-line;
  position: relative;
  display: inline-block;
  text-align: left;
}

.message-user .message-bubble {
  background: linear-gradient(135deg, #6366f1, #60a5fa);
  color: #fff;
  border-bottom-right-radius: 6px;
  border: 1px solid #a5b4fc;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.08);
  max-width: 100%;
  word-break: break-word;
  white-space: pre-line;
  display: block;
  text-align: left;
}

.message-bot .message-bubble {
  background: var(--message-bot);
  color: var(--dark-color);
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.message-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 500;
}

.answer-block {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: celebrateAnswer 0.6s ease-out;
}

@keyframes celebrateAnswer {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hint-block {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
  color: white;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: hintPulse 0.5s ease-out;
}

@keyframes hintPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.input-section {
  position: relative;
}

.input-group {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  padding: 4px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#user-input {
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 1rem;
  flex: 1;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

#user-input::placeholder {
  color: #94a3b8;
}

.send-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.send-btn:disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
}

.send-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.quick-btn {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid #cbd5e1;
  color: var(--dark-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.quick-btn:hover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  transform: translateY(-1px);
}

.quick-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.quick-btn:disabled:hover {
  background: #f1f5f9;
  transform: none;
}

.loading-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.9rem;
  margin: 10px 0;
}

.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  animation: loadingPulse 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingPulse {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.empty-chat {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
  padding: 40px 20px;
}

/* Settings Page Styles */
.settings-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.settings-card {
  background: var(--message-bot);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.settings-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.setting-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.setting-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.setting-group small {
  display: block;
  color: #6b7280;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.start-game-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
}

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

.game-info {
  background: var(--chat-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.game-info h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.game-info li {
  padding: 0.5rem 0;
  font-size: 1rem;
}

.game-results {
  text-align: center;
  padding: 2rem;
}

.game-results h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* For 4 items, create a more balanced layout */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-item {
  background: var(--light-color);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--dark-color);
  font-weight: 500;
}

.result-message {
  font-size: 1.2rem;
  margin: 2rem 0;
  font-weight: 500;
  color: var(--dark-color);
}

.next-image-message {
  background: var(--success-color);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.game-info-message {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-info-message i {
    color: #0ea5e9;
}

.skip-message {
    background: #fef3c7;
    color: #d97706;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    border: 1px solid #fbbf24;
}

#next-artifact-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

#next-artifact-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Results Page Styles */
.results-container {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-overview {
    margin-bottom: 2rem;
}

.stats-card {
    background: var(--message-bot);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.stats-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.performance-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
}

.results-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.result-item {
    background: var(--message-bot);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.result-item.correct {
    border-left-color: var(--success-color);
}

.result-item.incorrect {
    border-left-color: var(--danger-color);
}

.result-header {
    background: var(--light-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.result-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.result-status.correct {
    color: var(--success-color);
}

.result-status.incorrect {
    color: var(--danger-color);
}

.result-guesses {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.result-content {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.result-image {
    flex-shrink: 0;
}

.result-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.result-image img:hover {
    transform: scale(1.05);
}

.result-details {
    flex: 1;
}

.correct-answer {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--chat-bg);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.user-attempts ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.user-attempts li {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0.25rem;
    font-family: monospace;
}

.correct-attempt {
    background: #dcfce7;
    color: #166534;
}

.wrong-attempt {
    background: #fef2f2;
    color: #991b1b;
}

.results-actions {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* When there's only one button, make it look good */
.results-actions .action-btn:only-child {
    min-width: 200px;
}

/* Add validation styling for form inputs */
.setting-group input:invalid {
    border-color: var(--danger-color);
}

.setting-group input:valid {
    border-color: var(--success-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

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

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-color);
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 0.5rem;
}

.modal-answer {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.error-message {
    text-align: center;
    color: var(--danger-color);
    padding: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .main-container {
    margin: 0;
    border-radius: 16px;
  }

  .header {
    padding: 25px 20px;
  }

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

  .game-area {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }

  .image-section {
    order: 1;
  }

  .chat-section {
    order: 2;
  }

  #celeb-img {
    height: 300px;
  }

  .message-bubble {
    max-width: 90%;
    font-size: 0.9rem;
  }

  .quick-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }

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

  #celeb-img {
    height: 200px;
  }

  .chat-container {
    min-height: 240px;
    padding: 15px;
  }

  .input-group {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .send-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }
}

/* Responsive Design for Results */
@media (max-width: 768px) {
    .result-content {
        flex-direction: column;
    }
    
    .result-image img {
        width: 100%;
        height: 200px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Image Selector Section */
.image-selector-section {
    background: var(--message-bot);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.image-selector-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.selector-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.selector-controls label {
    font-weight: 500;
    color: var(--dark-color);
    white-space: nowrap;
}

#image-dropdown {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
}

#image-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

.navigation-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

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

/* Selected Image Display */
.selected-image-card {
    background: var(--message-bot);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.selected-image-card.correct {
    border-left-color: var(--success-color);
}

.selected-image-card.incorrect {
    border-left-color: var(--danger-color);
}

.image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.image-header h4 {
    color: var(--dark-color);
    margin: 0;
    font-weight: 600;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.correct {
    background: #dcfce7;
    color: var(--success-color);
}

.status-badge.incorrect {
    background: #fef2f2;
    color: var(--danger-color);
}

.image-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.large-image-container {
    flex-shrink: 0;
}

.large-image-container img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
    background: #f8fafc;
}

.large-image-container img:hover {
    transform: scale(1.02);
}

.image-details {
    flex: 1;
}

.correct-answer-section,
.attempts-section {
    margin-bottom: 1.5rem;
}

.correct-answer-section h5,
.attempts-section h5 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.correct-answer-text {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.attempts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attempt-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.attempt-item.correct-attempt {
    background: #dcfce7;
    color: #166534;
}

.attempt-item.wrong-attempt {
    background: #fef2f2;
    color: #991b1b;
}

.attempt-number {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.attempt-text {
    flex: 1;
    font-family: monospace;
}

.attempt-result {
    flex-shrink: 0;
}

/* All Images Summary */
.all-images-summary {
    background: var(--message-bot);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.all-images-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.summary-item {
    background: var(--light-color);
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.summary-item.correct {
    border-color: var(--success-color);
}

.summary-item.incorrect {
    border-color: var(--danger-color);
}

.summary-image {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

.summary-item.correct .summary-overlay {
    background: var(--success-color);
}

.summary-item.incorrect .summary-overlay {
    background: var(--danger-color);
}

.summary-info {
    padding: 0.75rem;
    text-align: center;
}

.summary-number {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.summary-guesses {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .selector-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navigation-buttons {
        justify-content: center;
    }
    
    .image-content {
        flex-direction: column;
    }
    
    .large-image-container img {
        width: 100%;
        height: 250px;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

.performance-section {
    margin-bottom: 1.5rem;
}

.performance-section h5 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.performance-info {
    background: var(--light-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.performance-label {
    font-weight: 500;
    color: var(--dark-color);
}

.performance-value {
    font-weight: 600;
}

.performance-value.correct {
    color: var(--success-color);
}

.performance-value.incorrect {
    color: var(--danger-color);
}

/* Disabled state styles */
#user-input:disabled {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.send-btn:disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

.send-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.quick-btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.quick-btn:disabled:hover {
    background: #f1f5f9;
    transform: none;
}

#next-artifact-btn:disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

#next-artifact-btn:disabled:hover {
    background: #e2e8f0;
    transform: none;
}
