:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --card-bg: #fff;
    --border-color: #ddd;
    --border-light: #eee;
    --correct-color: #2ecc71;
    --incorrect-color: #e74c3c;
    --highlight-color: #f1c40f;
    --hover-bg: #f5f9ff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
}

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

body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

.file-input-container {
    position: relative;
    margin: 10px 0;
}

#jsonFileInput {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-input-label {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-block;
    transition: background-color var(--transition-fast);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.file-input-label:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.summary-stats {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.summary-stats h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.summary-stats h3 {
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.stats-list {
    list-style: none;
    margin-left: 5px;
}

.stats-list li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.response-item {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.response-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.response-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.response-header h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.model-name {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.question-section {
    margin-bottom: 25px;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.question-main {
    padding: 20px;
    font-size: 1.1rem;
}

.question-main strong {
    color: var(--text-color);
}

.options-list {
    margin-top: 15px;
    list-style: none;
    padding: 0;
}

.options-list li {
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.options-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.question-details-toggle {
    border-top: 1px solid var(--border-color);
}

.toggle-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(52, 152, 219, 0.1);
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
}

.toggle-btn:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

.toggle-btn::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: auto;
}

.toggle-btn:hover::after {
    transform: translateY(2px);
}

.question-details {
    padding: 15px 20px;
    background-color: rgba(52, 152, 219, 0.05);
}

.detail-item {
    margin-bottom: 12px;
}

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

.detail-item strong {
    color: var(--text-color);
    font-weight: 600;
}

.response-content-container {
    margin-bottom: 25px;
}

.initial-response {
    margin-bottom: 20px;
    padding: 0 10px;
    line-height: 1.8;
}

.reasoning-steps {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 20px 0 30px 0;
    overflow: hidden;
}

.reasoning-steps h3 {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    margin-bottom: 0;
}

.reasoning-step {
    border-top: 1px solid var(--border-color);
}

.reasoning-step:first-child {
    border-top: none;
}

.step-toggle {
    padding: 12px 15px;
    cursor: pointer;
    background-color: var(--light-bg);
    transition: background-color var(--transition-fast);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.step-toggle:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.step-toggle::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: auto;
    transition: transform var(--transition-fast);
}

.step-toggle.active {
    background-color: rgba(52, 152, 219, 0.15);
}

.step-toggle.active::after {
    transform: rotate(180deg);
}

.step-content {
    padding: 15px;
    border-top: 1px solid var(--border-light);
    background-color: rgba(52, 152, 219, 0.05);
}

.think-content {
    margin-bottom: 15px;
}

.thought-text {
    padding: 10px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    margin-top: 5px;
    line-height: 1.7;
}

.prior-content {
    margin-top: 15px;
}

.probability-bars {
    margin-top: 10px;
}

.probability-bars.final {
    margin-top: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    background-color: rgba(241, 196, 15, 0.05);
}

.prob-item {
    margin-bottom: 10px;
}

.prob-item.highest .prob-bar {
    background-color: var(--highlight-color);
}

.prob-item.highest .prob-label {
    font-weight: 600;
    color: var(--highlight-color);
}

.prob-label {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.prob-bar-container {
    height: 25px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-pill);
    position: relative;
    overflow: hidden;
}

.prob-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--radius-pill);
    transition: width var(--transition-medium) ease-out;
}

.prob-value {
    position: absolute;
    right: 10px;
    top: 0;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 25px;
}

.final-probabilities h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.final-answer {
    font-weight: 500;
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.correct {
    color: var(--correct-color);
    font-weight: 600;
}

.incorrect {
    color: var(--incorrect-color);
    font-weight: 600;
}

.probabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.probability-item {
    background-color: var(--light-bg);
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform var(--transition-fast);
}

.probability-item:hover {
    transform: translateY(-2px);
}

.highest-probability {
    background-color: var(--highlight-color);
    color: #333;
}

.response-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag.skipped {
    background-color: #f39c12;
    color: white;
}

.tag.correct {
    background-color: var(--correct-color);
    color: white;
}

.tag.incorrect {
    background-color: var(--incorrect-color);
    color: white;
}

.toggleable {
    cursor: pointer;
}

.toggleable-content {
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.collapsed {
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.collapsed::after {
    content: "Read more...";
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.pagination button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.pagination button:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

.pagination span {
    font-size: 0.9rem;
    color: var(--text-light);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .response-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .final-answer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .probabilities {
        flex-direction: column;
    }
} 