/* MLOS E2E Report Styles */
/* Modern dark theme with gradient accents */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-purple: #667eea;
    --accent-pink: #764ba2;
    --accent-green: #38ef7d;
    --accent-teal: #11998e;
    --border-color: #27272a;
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-green: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

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

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: var(--gradient-purple);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.summary-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.big-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content Grid */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sections */
.section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.section h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Category Section */
.category-section {
    margin-bottom: 1.5rem;
}

.category-section h4 {
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.category-section:not(:first-child) {
    margin-top: 1.5rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.metric-card {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-purple);
    border-radius: 8px;
    padding: 16px;
}

.metric-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Chart Container */
.chart-container {
    height: 300px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    border-top: 4px solid var(--accent-purple);
}

.category-card.nlp {
    border-top-color: var(--accent-purple);
}

.category-card.vision {
    border-top-color: var(--accent-teal);
}

.category-card.multimodal {
    border-top-color: var(--accent-pink);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.category-card ul {
    list-style: none;
    margin-bottom: 16px;
}

.category-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-card li:last-child {
    border-bottom: none;
}

.category-card small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.category-status {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(56, 239, 125, 0.15);
    color: var(--accent-green);
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-badge.ready_not_tested {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.status-badge.warning {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.status-pending {
    opacity: 0.5;
}

/* Info Box */
.info-box {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-box h4 {
    font-size: 0.9rem;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.info-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Callout Box */
.callout-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid var(--accent-purple);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 20px;
}

.callout-box h4 {
    font-size: 1rem;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.callout-box .big-number {
    font-size: 2rem;
    margin-bottom: 8px;
}

.callout-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer strong {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .big-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.5s ease forwards;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }

/* Config Link */
.config-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-purple);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.config-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* CSS Variables for models page */
:root {
    --card-bg: var(--bg-card);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --accent-primary: var(--accent-purple);
}
