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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #232323;
    background: #FFF;
    min-height: 100vh;
    padding: 20px;
}

/* Progress Bar Inside Container */
.progress-bar-wrapper {
    margin-bottom: 0;
    margin-top: 0;
}

.progress-bar-chunks {
    display: flex;
    gap: 4px;
    height: 8px;
    margin-top: 28px;
}

.progress-chunk {
    background: #e8eef3;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

.progress-chunk::after {
    content: attr(data-label);
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75em;
    color: #999;
    white-space: nowrap;
    font-weight: 400;
    transition: all 0.3s ease;
}

.progress-chunk.completed::after {
    color: #666;
    font-weight: 500;
}

.progress-chunk.active::after {
    color: #232323;
    font-weight: 700;
}

.progress-chunk.completed {
    background: #00883A;
}

.progress-chunk.active {
    background: #00883A;
    height: 12px;
    margin-top: -4px;
}

/* Chunk widths - customize based on survey section length */
.progress-chunk.general {
    flex: 1; /* Smallest - quick questions */
}

.progress-chunk.ai-literacy {
    flex: 1.5; /* Medium - 10 questions */
}

.progress-chunk.judge {
    flex: 3; /* Largest - 30-50 comparisons */
}

.progress-chunk.mobileai {
    flex: 1.5; /* Medium - 5 questions across 3 pages */
}

.progress-chunk.scenarios {
    flex: 1; /* Small - slider scenarios */
}

/* Header with Logo */
.header {
    max-width: 980px;
    margin: 20px auto 40px;
    padding-left: 40px;
    display: flex;
    justify-content: flex-start;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
}

.container {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
    border: 1px solid #e1e8ed;
}

.container.no-top-radius {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}


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

/* Progress Indicator */
.progress-header {
    margin-bottom: 30px;
}

.progress-header h2 {
    color: #232323;
    font-size: 1.8em;
    margin: 0 0 20px 0;
    font-weight: 600;
    text-align: left;
}

.progress-bar-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.progress-step {
    flex: 1;
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-step.active {
    background: #00883A;
}

.progress-step.completed {
    background: #00883A;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
}

h1 {
    color: #232323;
    margin-bottom: 15px;
    font-size: 2.2em;
    text-align: center;
    font-weight: 600;
}

h2 {
    color: #232323;
    margin-bottom: 25px;
    font-size: 1.3em;
    text-align: center;
    font-weight: 400;
}

p {
    margin-bottom: 20px;
    color: #232323;
    font-size: 1em;
    line-height: 1.7;
}

.btn {
    background: #00883A;
    color: #FFF;
    border: none;
    padding: 14px 32px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover {
    background: #006b2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 58, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 136, 58, 0.2);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:disabled {
    opacity: 1;
    cursor: pointer;
    transform: none;
    background: #00883A;
}

.btn:disabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 58, 0.3);
}

/* Next page button container */
.next-page-container {
    max-width: 900px;
    margin: 20px auto;
    padding-right: 0;
    text-align: right;
}

.btn-next-page {
    background: #00883A;
    color: #FFF;
    border: none;
    padding: 12px 24px;
    font-size: 0.95em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.btn-next-page .arrow-icon {
    height: 14px;
    width: auto;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-next-page:hover .arrow-icon {
    transform: translateX(3px);
}

.btn-next-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-next-page:hover {
    background: #165a31;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 107, 62, 0.3);
}

.btn-next-page:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 136, 58, 0.2);
}

.btn-next-page:active::before {
    width: 300px;
    height: 300px;
}

.btn-next-page:disabled {
    opacity: 1;
    cursor: pointer;
    background: #1e6b3e;
}

.btn-next-page:disabled:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 107, 62, 0.3);
}

.btn-secondary {
    background: #232323;
}

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

.center {
    text-align: center;
}

/* Survey Form Styles */
.survey-form {
    margin-top: 30px;
}

.question {
    margin-bottom: 25px;
    padding: 24px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.question label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #232323;
    font-size: 1em;
    line-height: 1.5;
}

.question select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d9e0;
    border-radius: 6px;
    font-size: 1em;
    background: #ffffff;
    color: #232323;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question select:hover {
    border-color: #00883A;
}

.question select:focus {
    outline: none;
    border-color: #00883A;
    box-shadow: 0 0 0 3px rgba(0, 136, 58, 0.1);
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #d1d9e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #00883A;
    background: #f8f9fb;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #00883A;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-weight: 400;
}

.radio-option input[type="radio"]:checked + label {
    font-weight: 500;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #00883A;
    background: rgba(0, 136, 58, 0.05);
}

/* Other text input styling */
.radio-option-other {
    flex-direction: column;
    align-items: flex-start;
}

.other-text-input {
    padding: 10px 12px;
    border: 2px solid #d1d9e0;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.other-text-input:disabled {
    background: #f8f9fb;
    cursor: not-allowed;
    opacity: 0.6;
}

.other-text-input:focus {
    outline: none;
    border-color: #00883A;
    box-shadow: 0 0 0 3px rgba(0, 136, 58, 0.1);
}

.other-text-input::placeholder {
    color: #999;
}

/* Number input styling */
.number-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d9e0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.number-input:hover {
    border-color: #00883A;
}

.number-input:focus {
    outline: none;
    border-color: #00883A;
    box-shadow: 0 0 0 3px rgba(0, 136, 58, 0.1);
}

.number-input::placeholder {
    color: #999;
    font-size: 0.95em;
}

/* Input validation states */
.number-input.input-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.number-input.input-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.number-input.input-valid {
    border-color: #00883A;
}

/* Helper text */
.input-helper-text {
    margin-top: 6px;
    font-size: 0.85em;
    line-height: 1.4;
}

.input-helper-text.error {
    color: #dc3545;
    font-weight: 500;
}

.input-helper-text.success {
    color: #00883A;
    font-weight: 500;
}

/* Question validation */
.question.error {
    border: 2px solid #c33;
    background: #fee;
}

/* Ranking Styles */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.comparison-item {
    padding: 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comparison-item.hover-highlight {
    border-color: #00883A;
    box-shadow: 0 4px 12px rgba(0, 136, 58, 0.2);
}

.comparison-item .hover-icon {
    position: absolute;
    top: 15px;
    right: 25px;
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(146deg) brightness(104%) contrast(97%);
}

.comparison-item.hover-highlight .hover-icon {
    opacity: 1;
}

.item-label {
    font-weight: 700;
    color: #00883A;
    font-size: 1.3em;
    margin-bottom: 15px;
    display: block;
}

.item-content {
    color: #232323;
    line-height: 1.8;
    font-size: 1.05em;
}

.ranking-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.progress-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 136, 58, 0.1);
    border-radius: 10px;
    color: #00883A;
    font-weight: 600;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    border-radius: 0;
    display: flex;
    align-items: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-error {
    background: transparent;
    color: #dc3545;
    border-left: 4px solid #dc3545;
    font-size: 0.95em;
}

.alert-success {
    background: transparent;
    color: #00883A;
    border-left: 4px solid #00883A;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    .header {
        padding: 0 25px;
    }
    
    .logo {
        height: 50px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    /* Hide progress bar labels on mobile */
    .progress-chunk::after {
        display: none;
    }
    
    .progress-bar-chunks {
        margin-top: 8px;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .ranking-controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Mobile-friendly MAILS table layout */
    .mails-table {
        display: block;
        overflow-x: visible;
    }
    
    .mails-table thead {
        display: none;
    }
    
    /* Disable sticky header on mobile */
    .mails-table thead.fixed {
        position: static;
        width: auto;
    }
    
    .mails-table tbody {
        display: block;
    }
    
    .mails-table tbody tr {
        display: block;
        margin-bottom: 30px;
        padding: 15px;
        border: 1px solid #e8eef3;
        border-radius: 8px;
    }
    
    .mails-table tbody tr td {
        display: block;
        width: 100% !important;
        padding: 0 !important;
        border: none;
    }
    
    .mails-table tbody tr td:first-child {
        font-weight: 600;
        margin-bottom: 15px;
        padding: 0 !important;
        font-size: 1em;
        text-align: center;
        width: 100%;
        flex-basis: 100%;
    }
    
    /* Wrapper for the entire row */
    .mails-table tbody tr {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Radio buttons container - create a flex row for just the buttons */
    .mails-table tbody tr td:not(:first-child) {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        width: auto !important;
        margin: 0;
        padding: 2px !important;
        flex: 1 1 0;
        min-width: 0;
    }
    
    .mails-table tbody tr td:not(:first-child) input[type="radio"] {
        margin: 0 0 3px 0;
        width: 16px;
        height: 16px;
    }
    
    .mails-table tbody tr td:not(:first-child)::after {
        content: attr(data-column);
        display: block;
        font-size: 0.75em;
        font-weight: 600;
        color: #666;
    }
    
    .mails-scale-info {
        font-size: 0.85em;
    }
    
    /* Mobile-friendly judge controls */
    .judge-controls {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 10px !important;
    }
    
    .judge-controls .btn[data-action="left"],
    .judge-controls .btn[data-action="right"] {
        flex: 1;
        min-width: 0;
        max-width: none;
        font-size: 0.9em;
        padding: 12px 8px;
    }
    
    .judge-controls .btn[data-action="tie"] {
        flex: 1 1 100%;
        min-width: 0;
        max-width: none;
    }
}

/* Success Icon */
.success-icon {
    font-size: 4em;
    color: #00883A;
    margin-bottom: 20px;
}

.intro-text {
    background: #f8f9fb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #00883A;
}

.intro-text ul {
    margin-left: 20px;
    margin-top: 10px;
}

.intro-text li {
    margin-bottom: 10px;
    color: #232323;
}

.intro-text strong {
    color: #232323;
}

.intro-text p {
    color: #232323;
}

/* Instructions Summary */
.instructions-summary {
    background: #f8f9fb;
    padding: 15px 20px 20px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid #00883A;
    border-bottom: 3px solid #d1d9e0;
    box-shadow: 0 3px 0 0 #f0f0f0;
}

.instructions-summary p {
    margin: 0;
    color: #232323;
    font-size: 0.95em;
    line-height: 1.6;
}

.instructions-summary #fullInstructions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #d1d9e0;
}

.btn-link {
    background: none;
    border: none;
    color: #00883A;
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px 0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #006b2e;
    text-decoration: underline;
}

/* Prompt Section - Centered Style */
.prompt-section {
    margin-bottom: 25px;
    margin-top: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.prompt-label {
    display: none;
}

.prompt-text {
    background: #ffffff;
    color: #232323;
    font-size: 1em;
    line-height: 1.6;
    padding: 18px 26px;
    border-radius: 16px;
    max-width: 75%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid #e1e8ed;
    display: inline-block;
    text-align: left;
    font-weight: 500;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #00883A;
}

/* Slider Styles */
.slider-container {
    margin-top: 30px;
}

.slider-item {
    margin-bottom: 35px;
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.slider-scenario {
    font-weight: 500;
    color: #232323;
    font-size: 1em;
    margin-bottom: 20px;
    display: block;
    line-height: 1.5;
    text-align: center;
}

.slider-wrapper {
    position: relative;
    padding: 15px 0;
}

.slider-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e8ed;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00883A;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 136, 58, 0.3);
}

.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00883A;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 136, 58, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.85em;
    color: #666;
}

.slider-value {
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
    color: #232323;
    font-size: 0.95em;
}

.slider-instructions {
    background: #f8f9fb;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 3px solid #00883A;
}

.slider-legend {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: #232323;
    font-size: 0.9em;
}

.legend-left {
    color: #232323;
}

.legend-right {
    color: #232323;
}

/* MAILS Matrix Layout */
.mails-matrix {
    margin: 20px 0;
}

.mails-instruction {
    margin-bottom: 20px;
    padding: 0;
    color: #232323;
    font-size: 0.95em;
    line-height: 1.6;
}

.mails-instruction p {
    margin: 0 0 8px 0;
}

.mails-scale-info {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fb;
    border-radius: 6px;
    border-left: 3px solid #00883A;
}

.mails-scale-info p {
    margin: 0;
    font-size: 0.9em;
    color: #232323;
    line-height: 1.5;
}

.mails-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFF;
    border-radius: 8px;
    overflow: hidden;
}

.mails-table thead {
    background: #FFF;
    color: #232323;
    transition: all 0.2s ease;
}

.mails-table thead.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid #d1d9e0;
    margin: 0 auto;
    max-width: 820px;
}

.mails-table th {
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85em;
    border-bottom: 2px solid #FFF;
    transition: border-color 0.15s ease;
    background: #FFF;
}

.mails-table th:first-child {
    background: #FFF;
    border: none;
    width: 45%;
}

.mails-table th:last-child {
    border-right: none;
}

.mails-table tbody tr {
    border-bottom: 1px solid #e8eef3;
    transition: background-color 0.15s ease;
}

.mails-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.mails-table tbody tr:nth-child(even) {
    background: #f8f9fb;
}

.mails-table tbody tr:last-child {
    border-bottom: none;
}

.mails-table tbody tr:hover {
    background: #e3f2e1 !important;
}

.mails-table tbody tr.error {
    background: #fee !important;
}

.mails-table tbody tr.error:hover {
    background: #fdd !important;
}

.mails-table td {
    padding: 10px 6px;
    text-align: center;
}

.mails-table td:first-child {
    text-align: left;
    padding-left: 16px;
    font-weight: 400;
    color: #232323;
    line-height: 1.4;
    font-size: 0.95em;
}

.mails-table td {
    cursor: pointer;
}

.mails-table input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00883A;
}

.mails-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 20px;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

/* Judge Controls */
.judge-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.judge-controls .btn {
    flex: 1;
    min-width: 180px;
    max-width: 180px;
    height: 48px;
    background: #ffffff;
    color: #232323;
    border: 2px solid #d1d9e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.judge-controls .btn:hover {
    background: rgba(0, 136, 58, 0.1);
    border-color: #00883A;
    color: #00883A;
}

.judge-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fb;
}

/* Response boxes for judge page */
.comparison-item .item-label {
    font-weight: 600;
    color: #666;
    font-size: 0.85em;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 25px 12px 25px;
    border-bottom: 1px solid #e8eef3;
    background: #fafbfc;
}

.comparison-item .item-content {
    color: #232323;
    line-height: 1.8;
    font-size: 1em;
    padding: 20px 25px;
}

/* Markdown-style highlighting in response content */
.comparison-item .item-content code {
    background: #f0f4ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.comparison-item .item-content strong {
    font-weight: 700;
    color: #232323;
}

.comparison-item .item-content em {
    font-style: italic;
    color: #555;
}

/* Style markdown-generated lists */
.comparison-item .item-content ol,
.comparison-item .item-content ul {
    margin: 0;
    padding-left: 0;
    list-style-position: inside;
}

.comparison-item .item-content li {
    margin-bottom: 4px;
    line-height: 1.6;
}

.comparison-item .item-content p {
    margin: 0 0 10px 0;
}

.comparison-item .item-content p:last-child {
    margin-bottom: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-content h3 {
    font-size: 1.5em;
    font-weight: 600;
}

.modal-content p {
    color: #232323;
    line-height: 1.6;
}

.modal-content ol {
    color: #232323;
}

.modal-content ol li {
    line-height: 1.6;
}

/* Likert Scale Styles */
.likert-question {
    padding: 28px 24px;
}

.likert-statement {
    font-weight: 500;
    color: #232323;
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
}

.likert-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: #ffffff;
    border: 2px solid #d1d9e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.likert-option:hover {
    border-color: #00883A;
    background: #f8f9fb;
}

.likert-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #00883A;
}

.likert-option label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85em;
    text-align: center;
    line-height: 1.3;
    color: #666;
    font-weight: 500;
}

.likert-option:has(input[type="radio"]:checked) {
    border-color: #00883A;
    background: rgba(0, 136, 58, 0.05);
}

.likert-option:has(input[type="radio"]:checked) label {
    color: #00883A;
    font-weight: 600;
}

/* Mobile responsive for Likert scale */
@media (max-width: 768px) {
    .likert-scale {
        flex-direction: column;
        gap: 10px;
    }
    
    .likert-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 16px;
    }
    
    .likert-option input[type="radio"] {
        margin-right: 12px;
    }
    
    .likert-option label {
        text-align: left;
        font-size: 0.95em;
    }
}

@media (max-width: 968px) {
    .judge-responses {
        grid-template-columns: 1fr;
    }
    
    .judge-controls {
        flex-direction: column;
    }
    
    .judge-btn {
        width: 100%;
    }
    
    .mails-matrix {
        font-size: 0.9em;
    }
    
    .mails-table th,
    .mails-table td {
        padding: 10px 5px;
    }
    
    .mails-table th:first-child,
    .mails-table td:first-child {
        padding-left: 10px;
    }
}
