/* --- Global Variables & Reset --- */
:root {
    --primary-blue: #0056b3;
    /* Deep Professional Blue */
    --hover-blue: #004494;
    --cream-bg: #fcfbf9;
    /* Subtle Cream/Off-White Background */
    --white: #ffffff;
    --text-dark: #2c3e50;
    /* Dark Navy Text */
    --text-gray: #5a6b7c;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', sans-serif;

    /* New Modern Variables */
    --sidebar-width: 260px;
    --sidebar-bg: #ffffff;
    --sidebar-text: #64748b;
    /* Slate 500 */
    --sidebar-active: #e0f2fe;
    /* Light Blue 100 */
    --accent-color: #0284c7;
    /* Sky 600 */
    --bg-light: #f1f5f9;
    /* Slate 100 */
    --border-color: #e2e8f0;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ... (unchanged parts) ... */

/* --- Sidebar --- */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ... */
.nav-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    /* Slate 400 */
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.nav-item:hover {
    background-color: #f8fafc;
    /* Very light slate */
    color: var(--accent-color);
}

.nav-item.active {
    background-color: var(--sidebar-active);
    color: var(--accent-color);
    box-shadow: none;
    /* Removed heavy shadow */
    border-right: 3px solid var(--accent-color);
    /* Add meaningful active indicator */
}

/* --- Navigation Bar (Legacy) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 26px;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-primary-small {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    /* Pill shape for modern look */
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.btn-primary-small:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    min-height: 85vh;
    /* Full viewport height minus nav */
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    /* Large and bold */
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--primary-blue);
    background: linear-gradient(120deg, rgba(0, 86, 179, 0.1) 0%, rgba(0, 86, 179, 0) 100%);
    border-radius: 8px;
    padding: 0 5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary-hero {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.25);
}

.btn-primary-hero:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.35);
}

.btn-secondary-hero {
    background-color: transparent;
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #e0e6ed;
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: #f0f7ff;
}

/* --- Hero Visual (Right Side) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.system-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.system-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.diagram-container img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.diagram-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    background-color: #e6f0ff;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
        height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        /* Add hamburger for real mobile */
    }
}

/* --- Legacy / Utility Classes for App Pages --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="file"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

button,
.btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

button:hover,
.btn:hover {
    background-color: var(--hover-blue);
}

.hidden {
    display: none;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: var(--text-dark);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* ========================================= */
/*       NEW MODERN SAAS STYLES             */
/* ========================================= */

/* --- Layout --- */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    transition: width 0.3s ease;
    z-index: 50;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    /* Slightly darker than white */
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    min-width: 0;
    /* Critical for preventing flex children from overflowing */
}

/* --- Sidebar --- */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    letter-spacing: -0.5px;
}

.logo-image {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.nav-item:hover {
    background-color: #f8fafc;
    color: var(--accent-color);
}

.nav-item.active {
    background-color: var(--sidebar-active);
    color: var(--accent-color);
    box-shadow: none;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #475569;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* --- Top Bar & Header --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.text-muted {
    color: #64748b;
}

.separator {
    color: #cbd5e1;
    font-size: 0.7rem;
}

.current-page {
    color: var(--text-dark);
    font-weight: 600;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: #f8fafc;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.page-header .subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* --- Cards --- */
.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.card-body {
    padding: 2rem;
}

/* --- Form Elements --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
}

.select-wrapper,
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-select,
.modern-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    /* space for icon */
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #fff;
    appearance: none;
    transition: all 0.2s ease;
}

.modern-select:focus,
.modern-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.select-icon,
.input-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    pointer-events: none;
}

.select-wrapper .select-icon.fa-chevron-down {
    left: auto;
    right: 1rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* --- Buttons --- */
.btn-primary-large {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-secondary-small {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-secondary-small:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* --- Table --- */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Scrollable Table Container for Large Datasets */
.table-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    position: relative;
    background: white;
}

/* Sticky table header */
.table-scroll-container .modern-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table th {
    background-color: #f8fafc;
    padding: 1rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    vertical-align: top;
}

.modern-table tr:hover td {
    background-color: #f8fafc;
}

/* Row number column styling */
.modern-table .row-number {
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
    width: 60px;
    min-width: 60px;
}

/* Search/Filter Box Styling */
.table-search-box {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.table-search-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.table-search-stats {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Misc & Animations --- */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-banner-wrapper {
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

/* --- Excel-like Cell --- */
.excel-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.excel-cell:hover {
    background-color: #e2e8f0;
}

/* --- Content Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 70vw;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    overflow-y: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    white-space: pre-wrap;
    /* Preserve formatting for SQL */
    word-break: break-word;
    color: #1e293b;
    font-size: 1.1rem;  /* Increased from default */
    line-height: 1.8;   /* Increased for better readability */
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-dark);
}


/* ==================== Multi-LLM Voting Styles ==================== */

.voting-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.model-checkbox-item {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.model-checkbox-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.model-checkbox-item input[type="checkbox"]:checked + .checkbox-content {
    color: #1e40af;
}

.model-checkbox-item input[type="checkbox"]:checked ~ * {
    font-weight: 600;
}

.model-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.model-name {
    flex: 1;
    font-size: 0.9rem;
    color: #1e293b;
}

.model-provider {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
    font-weight: 500;
}

.selected-count {
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.9rem;
}

.selected-count i {
    margin-right: 6px;
    color: #3b82f6;
}

/* Voting Results Display */

.voting-results-container {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.final-verdict {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.final-verdict.verdict-correct {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #16a34a;
}

.final-verdict.verdict-incorrect {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #dc2626;
}

.verdict-icon {
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
}

.verdict-correct .verdict-icon {
    color: #16a34a;
}

.verdict-incorrect .verdict-icon {
    color: #dc2626;
}

.verdict-text {
    flex: 1;
}

.verdict-text strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 6px;
}

.confidence-score {
    font-size: 0.95rem;
    color: #475569;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agreement-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agreement-badge.badge-high {
    background: #16a34a;
    color: white;
}

.agreement-badge.badge-moderate {
    background: #f59e0b;
    color: white;
}

.agreement-badge.badge-low {
    background: #dc2626;
    color: white;
}

.voting-summary {
    padding: 14px 18px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.voting-summary strong {
    color: #1e293b;
    font-size: 1.05rem;
}

.vote-breakdown {
    color: #64748b;
    margin-left: 8px;
    font-size: 0.9rem;
}

.individual-votes {
    margin-top: 20px;
}

.individual-votes h5 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 14px;
    font-weight: 600;
}

.judge-vote-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.2s ease;
}

.judge-vote-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
}

.judge-vote-card.vote-correct {
    border-left: 5px solid #16a34a;
}

.judge-vote-card.vote-incorrect {
    border-left: 5px solid #dc2626;
}

.judge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.judge-number {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #475569;
}

.judge-model {
    flex: 1;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.judge-verdict {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.judge-verdict.verdict-correct {
    background: #dcfce7;
    color: #16a34a;
}

.judge-verdict.verdict-incorrect {
    background: #fee2e2;
    color: #dc2626;
}

.judge-feedback {
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.88rem;
    border: 1px solid #e2e8f0;
}

.judge-feedback strong {
    color: #475569;
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.judge-feedback p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}
