:root {
    --primary-color: #4f46e5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    padding: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.shoutout {
    font-size: 0.875rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 0.5rem;
}

main {
    flex: 1;
    padding: 3rem 0;
}

.hidden {
    display: none !important;
}

.loading, .error {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    color: var(--danger-color);
}

.error h2 {
    margin-bottom: 1rem;
}

.overall-stats {
    margin-bottom: 3rem;
}

.overall-stats h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.stat-card.overall {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.percentage {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-value.passed {
    color: var(--success-color);
}

.stat-value.failed {
    color: var(--danger-color);
}

.stat-value.skipped {
    color: var(--warning-color);
}

.test-suites {
    margin-bottom: 3rem;
}

.test-suites h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.suite-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.suites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.suite-card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.suite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.suite-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.suite-percentage {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.suite-percentage.excellent {
    color: var(--success-color);
}

.suite-percentage.good {
    color: #22c55e;
}

.suite-percentage.okay {
    color: #84cc16;
}

.suite-percentage.fair {
    color: var(--warning-color);
}

.suite-percentage.poor {
    color: #f97316;
}

.suite-percentage.bad {
    color: var(--danger-color);
}

.suite-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.875rem;
}

.suite-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-color);
    border-radius: 0.375rem;
}

.suite-stat-label {
    color: var(--text-muted);
}

.suite-stat-value {
    font-weight: 600;
}

.info-section {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-section p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.info-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

.info-section code {
    background: var(--bg-color);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s;
}

.button:hover {
    background: #4338ca;
}

footer {
    background: var(--card-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-note {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .percentage {
        font-size: 3rem;
    }

    .suites-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .links {
        flex-direction: column;
    }

    .button {
        text-align: center;
    }
}
