body { font-family: 'Inter', sans-serif; }
.clip-text{max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:50}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-content { animation: fadeIn 0.2s ease-out forwards; }
.loader-overlay {
  position: absolute;
  inset: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s;
}
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tab-button {
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  color: #6b7280;
  font-weight: 500;
}
.tab-button.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}
.tab-content {
  display: none;
  padding-top: 1rem;
}
.tab-content.active {
  display: block;
}

.image-cell-container {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.image-cell-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
  display: flex;         
  align-items: center;    
  justify-content: center;
  width: 100%;            
  height: 80px;
  background-color: #f8f9fa; 
  overflow: hidden;       
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.score-bar {
  padding: 0 2px;  
  text-align: center;  
  color: white;      
  font-size: 10px;   
  line-height: 1;   
  user-select: none;
  text-shadow: none;
}

.score-bar-correct {
  background-color: #56b98a;
}

.score-bar-incorrect {
  background-color: #f87171;
}

.score-bar-partial {
  background-color: #f2c75b;
}

.score-bar-neutral {
  background-color: #475569; 
}