.scaled-down {
    transform: scale(.75);
    transform-origin: top center;
    margin: 0 auto;
    max-width: none;
}


/* Prevent overflow issues with scaled content */
.scaled-down {
    overflow: visible;
    display: flex;
    justify-content: center;
}

/* Responsive adjustments for scaled content */
@media (max-width: 768px) {

    .scaled-down {
        transform: scale(1);
        /* Disable scaling on mobile */
        width: 100%;
        height: auto;
    }
}


/* Base Styles */
:root {
    /* Credo AI Brand Colors */
    --french-violet: #7B04CA;
    --mimi-pink: #FFD5E5;
    --dark-purple: #260838;
    --russ-violet: #31084B;
    --soft-blue: #C9B6FF;
    --pale-lavender: #E7C9FA;
    --lavender: #F2DEFF;
    --mimi-blush: #FCF2FA;
    --ghost-white: #FBF9FF;
    --chin-black: #161616;

    /* Primary color mappings */
    --primary-color: var(--french-violet);
    --light-primary: var(--lavender);
    --secondary-color: var(--soft-blue);
    --text-color: var(--chin-black);
    --gray-text: #49454F;
    --light-gray: #E6E1E5;
    --white: #FFFFFF;
    --shadow: none;
    --subtle-border: 1px solid var(--light-gray);
    --border-radius: 6px;
    --max-content-width: 1280px;

    /* Credo AI Main Gradient */
    --credo-gradient: linear-gradient(135deg, var(--mimi-pink) 0%, var(--french-violet) 100%);
    --button-gradient: linear-gradient(135deg, #BD7AE7 0%, var(--french-violet) 100%);
    /* Restricted gradient for buttons - starts ~50% through original */
    --progress-gradient-start: var(--mimi-pink);
    --progress-gradient-end: var(--french-violet);

    /* Dimension-specific colors */
    --capability-color: #7B04CA;
    /* French Violet (Credo AI Brand) */
    --safety-color: #4682B4;
    /* Steel Blue */
    --affordability-color: #66BB6A;
    /* Mint Green */
    --speed-color: #FF9800;
    /* Orange */

    /* Credo AI Typography Hierarchy */
    --font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Level 1: Signposting */
    --type-1-size: 18px;
    --type-1-weight: 400;
    --type-1-line-height: 2;

    /* Level 2: Headlines */
    --type-2-size: 80px;
    --type-2-weight: 500;
    --type-2-line-height: 1.2;

    /* Level 3: Under-titles */
    --type-3-size: 32px;
    --type-3-weight: 400;
    --type-3-line-height: 1.5;

    /* Level 4: Secondary headlines */
    --type-4-size: 26px;
    --type-4-weight: 500;
    --type-4-line-height: 1.4;

    /* Level 5: Lead body text */
    --type-5-size: 20px;
    --type-5-weight: 400;
    --type-5-line-height: 2;

    /* Level 6: Sub headers */
    --type-6-size: 18px;
    --type-6-weight: 600;
    --type-6-line-height: 2;

    /* Level 7: Body text */
    --type-7-size: 16px;
    --type-7-weight: 400;
    --type-7-line-height: 2;

    /* Level 8: Text links */
    --type-8-size: 16px;
    --type-8-weight: 500;
    --type-8-line-height: 2;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--ghost-white);
    font-size: var(--type-7-size);
    font-weight: var(--type-7-weight);
    line-height: var(--type-7-line-height);
}

/* Typography Hierarchy */
h1 {
    font-size: var(--type-2-size);
    font-weight: var(--type-2-weight);
    line-height: var(--type-2-line-height);
    color: var(--text-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: var(--type-3-size);
    font-weight: var(--type-3-weight);
    line-height: var(--type-3-line-height);
    color: var(--text-color);
    margin-bottom: 1rem;
}

h3 {
    font-size: var(--type-4-size);
    font-weight: var(--type-4-weight);
    line-height: var(--type-4-line-height);
    color: var(--text-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: var(--type-5-size);
    font-weight: var(--type-5-weight);
    line-height: var(--type-5-line-height);
    color: var(--text-color);
    margin-bottom: 1rem;
}

h5 {
    font-size: var(--type-6-size);
    font-weight: var(--type-6-weight);
    line-height: var(--type-6-line-height);
    color: var(--text-color);
    margin-bottom: 1rem;
}

h6 {
    font-size: var(--type-1-size);
    font-weight: var(--type-1-weight);
    line-height: var(--type-1-line-height);
    color: var(--text-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Typography: Text Links (Level 8) */
a {
    font-size: var(--type-8-size);
    font-weight: var(--type-8-weight);
    line-height: var(--type-8-line-height);
    color: var(--french-violet);
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--dark-purple);
}

a:focus {
    outline: 2px solid var(--french-violet);
    outline-offset: 2px;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

.logo {
    margin-bottom: 2rem;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background-color: ghostwhite;
    max-width: var(--max-content-width);
    margin: 0 auto;
    width: 100%;
}

/* Navigation */
nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 0.5rem;
}

nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Wizard Header */
.wizard-header {
    margin-bottom: 2rem;
}

.step-title {
    color: var(--gray-text);
    font-weight: 600;
}

/* Form Elements */
.wizard-form {
    max-width: 800px;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: var(--primary-color);
    background-color: var(--light-primary);
}

.checkbox-item input,
.radio-item input {
    margin-right: 0.5rem;
}

.form-actions {
    margin-top: 2rem;
}

.btn-submit,
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-submit,
.btn-primary {
    background: var(--button-gradient);
    color: white;
}

.btn-secondary {
    background-color: var(--light-primary);
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
}

.btn-submit:hover,
.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-submit:active,
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
}

/* Results Page */
.results-container {
    margin-bottom: 2rem;
}

.top-model {
    background: linear-gradient(135deg, var(--mimi-blush) 0%, var(--lavender) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.score-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--credo-gradient);
    color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.score-details {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 80%;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-item span {
    width: 120px;
}

.score-item .score-value {
    width: auto;
    min-width: 50px;
    text-align: right;
}

.progress-bar {
    flex: 1;
    background-color: var(--light-gray);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
}


/* Dimension-specific colors for progress bars */
.capability-fill {
    background-color: var(--capability-color);
}

.safety-fill {
    background-color: var(--safety-color);
}

.affordability-fill {
    background-color: var(--affordability-color);
}

.speed-fill {
    background-color: var(--speed-color);
}

.alternatives-section h3 {
    margin-bottom: 1rem;
}

.alternatives-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.alternative-model {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.model-header h4 {
    margin: 0;
}

.alt-score-badge {
    background: var(--credo-gradient);
    color: white;
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    font-weight: bold;
}

.score-details.compact {
    max-width: 100%;
}

/* Refinement Section */
.refinement-section {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--mimi-blush) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.refinement-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.refinement-dropdowns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dropdown-group {
    flex: 1;
    min-width: 200px;
}

.dropdown-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-text);
}

.filter-select {
    width: 50%;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    background-color: white;
}

.refinement-sliders {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.slider-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 220px;
    margin-bottom: 0;
}

.slider-header h3 {
    margin: 0;
    font-size: 1rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.slider {
    flex: 1;
    height: 5px;
    background: var(--light-gray);
    outline: none;
    -webkit-appearance: none;
    border-radius: 5px;
    background: linear-gradient(to right, var(--french-violet) 0%, var(--french-violet) var(--value-percent, 0%), var(--light-gray) var(--value-percent, 0%), var(--light-gray) 100%);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider-value {
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Footer */
.wizard-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
    color: var(--gray-text);
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .refinement-dropdowns {
        flex-direction: column;
    }

    .slider-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-header {
        margin-bottom: 0.5rem;
    }

    .actions {
        flex-direction: column;
    }
}

/* Add info icon and tooltip styling */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--credo-gradient);
    color: white;
    font-size: 12px;
    cursor: help;
    position: relative;
}

.info-icon:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 250px;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background-color: var(--text-color);
    color: white;
    font-size: 0.875rem;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    pointer-events: none;
}

.info-icon:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--text-color);
    margin-bottom: -8px;
    pointer-events: none;
}

/* App Links */
.app-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    width: fit-content;
}

.app-link:hover {
    color: var(--primary-color);
}

.app-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--credo-gradient);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s;
}

.app-link:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Auth Components */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.login-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.user-menu {
    position: relative;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-menu-button:hover {
    background-color: var(--light-primary);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--credo-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--light-primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--light-gray);
    margin: 0.25rem 0;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Card Components for Login and Account */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.card-body {
    padding: 1.5rem;
}

.card-header.bg-white {
    background-color: var(--white);
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-text);
}

.small {
    font-size: 0.875rem;
}

.fw-medium {
    font-weight: 500;
}

.rounded-circle {
    border-radius: 50%;
}

.border-0 {
    border: 0 !important;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-primary {
    background: var(--credo-gradient);
}

.text-white {
    color: white;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.d-grid {
    display: grid;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
}

.text-decoration-none {
    text-decoration: none;
}

.col-md-4 {
    width: 100%;
}

.col-md-6 {
    width: 100%;
}

.col-md-8 {
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.list-group {
    list-style: none;
    padding-left: 0;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    margin-bottom: -1px;
    background-color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--light-gray);
}

.btn-dark {
    background-color: #333;
    color: white;
}

.btn-outline-danger {
    color: #dc3545;
    border: 1px solid #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: white;
    background-color: #dc3545;
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333333%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .col-md-6 {
        width: 50%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .col-md-8 {
        width: 66.666667%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.bg-secondary {
    background-color: #6c757d;
    color: white;
}

.ms-2 {
    margin-left: 0.5rem;
}

/* Model Results Styling */
.results-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: var(--button-gradient);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--pale-lavender) 0%, var(--russ-violet) 100%);
    transform: translateY(-1px);
}

.btn-download:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.model-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.model-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.model-name {
    font-size: 1.25rem;
    font-weight: bold;
}

.model-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.dimension-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dimension-bar {
    display: flex;
    align-items: center;
}

.dimension-label {
    min-width: 100px;
    font-size: 0.9rem;
}

.score-value {
    min-width: 40px;
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 10px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Top Model */
.top-model {
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.top-model h4 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.top-model .model-name {
    font-size: 1.5rem;
}

.top-model .model-score {
    font-size: 2rem;
}


.logout-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
    text-align: center;
}

.logout-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Evidence Strength Badges */
.evidence-strength {
    margin-top: 6px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    padding-left: 16px;
}

.evidence-info-icon {
    position: absolute;
    left: 0;
    top: 0;
    color: #888;
    font-size: 11px;
}

.evidence-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
    line-height: 1.2;
    transition: opacity 0.2s;
    color: #333;
}

.capability-badge strong:first-child {
    color: var(--gray-text);
}

.safety-badge strong:first-child {
    color: var(--gray-text);
}

.evidence-badge span {
    font-weight: normal;
}

.evidence-badge strong {
    font-weight: 600;
}

.evidence-badge strong.high {
    color: #27ae60;
}

.evidence-badge strong.medium {
    color: #f39c12;
}

.evidence-badge strong.low {
    color: #e74c3c;
}

/* Make the model cards look better with the new badges */
.model-card-header {
    margin-bottom: 8px;
}

.model-name {
    display: flex;
    flex-direction: column;
}

.model-name a {
    font-weight: 600;
}

/* Models Carousel */
.models-carousel-section {
    margin-top: 1.5rem;
}

.model-count {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--gray-text);
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0 30px;
    /* Add padding to make room for the navigation buttons */
}

.models-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 0.5rem 0.5rem 1rem;
    width: 100%;
    -ms-overflow-style: none;
    /* Hide scrollbar IE and Edge */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.models-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome, Safari and Opera */
}

.models-carousel .model-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 300px;
    scroll-snap-align: start;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.carousel-nav:hover {
    background-color: var(--light-primary);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: -10px;
}

.carousel-next {
    right: -10px;
}

.carousel-dots-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 1rem;
}

.carousel-center-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.carousel-center-nav:hover {
    background-color: var(--light-primary);
    transform: scale(1.05);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.carousel-dot.active {
    background: var(--credo-gradient);
}