body {
  font-family: 'Crimson Text', 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  text-align: center;
  color: #1a1a1a;
}

.header-info {
  text-align: right;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
  border: 1px solid #e5e7eb;
}

thead {
  background-color: #f9fafb;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

th {
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

tbody tr:first-child td {
  border-top: 2px solid #e5e7eb;
}

.accuracy-cell, .error-cell {
  text-align: right;
}

.group-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-weight: bold;
    background: linear-gradient(to bottom, #f3f4f6, #e5e7eb);
    border-right: 2px solid #d1d5db;
    border-left: 2px solid #d1d5db;
    position: relative;
    color: #374151;
    font-size: 13px;
}

.group-separator {
    border-top: 3px solid #d1d5db;
    background-color: #f9fafb;
}

.group-separator td {
    padding: 0;
    height: 3px;
}

.group-divider {
    background-color: #f3f4f6;
    font-weight: bold;
    text-align: left;
    border-top: 2px solid #e5e7eb;
}

.model-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.model-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Model-specific gradient icons */
.deepseek-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.qwen-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.llama-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gemini-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.openai-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.claude-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.internvl-icon {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.llava-icon {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.molmo-icon {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.mistral-icon {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
}

.vicuna-icon {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

/* Tab System Styles */
.tabs-container {
    margin: 32px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tab-nav {
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 8px;
    margin: 0;
}

.tab-button {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-weight: 500;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    background: rgba(255,255,255,0.6);
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-button.active {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e40af;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 2px 2px 0 0;
}

.tab-content {
    display: none;
    padding: 24px;
    animation: fadeIn 0.4s ease-out;
    background: #fafbfc;
}

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

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.tab-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.tab-button.active .tab-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
}

.tab-icon.vlms { 
    color: #3b82f6;
}
.tab-icon.agentic { 
    color: #10b981;
}
.tab-icon.gui { 
    color: #f59e0b;
}

.tab-button.active .tab-icon.vlms {
    color: #1e40af;
}
.tab-button.active .tab-icon.agentic {
    color: #059669;
}
.tab-button.active .tab-icon.gui {
    color: #d97706;
}

.table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .tabs-container {
        margin: 20px 0;
    }
    
    .tab-nav {
        padding: 4px;
    }
    
    .tab-button {
        font-size: 12px;
        padding: 10px 12px;
        flex-direction: column;
        gap: 6px;
    }
    
    .tab-button span {
        text-align: center;
        line-height: 1.2;
    }
    
    .tab-content {
        padding: 16px;
    }
}

/* Text overflow handling */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Response boxes styling */
.response-box {
    height: 96px; /* h-24 equivalent */
    overflow: hidden;
}

.response-content {
    max-height: calc(100% - 20px); /* Subtract header height */
    overflow: hidden;
}

.underline { text-decoration: underline; }
.bold { font-weight: bold; }

.note {
    font-size: 11px;
    color: #6b7280;
    margin-top: 12px;
    line-height: 1.4;
}

.note a {
    color: #3b82f6;
    text-decoration: none;
}

.note a:hover {
    text-decoration: underline;
}

.heading {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.25rem;
  font-family: 'Crimson Text', 'Times New Roman', Times, serif;
}

.underline-gradient {
  height: 4px;
  width: 80px;
  margin: 0.1rem auto 2rem auto;
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  border-radius: 4px;
}

.author-link {
  color: #1e40af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
