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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background-color: #f5f7fa; */
    background-color: #000000;
}

.navbar {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: #202020;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 64px;
}

.navbar-brand {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.navbar-item {
    position: relative;
}
.navbar-link {
    display: block;
    padding: 20px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
}


.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}


@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-link {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-link:last-child {
        border-bottom: none;
    }
}

.content-area {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.welcome-card h2 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 28px;
}

.welcome-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 16px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: #202020;
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.dashboard-header p {
    opacity: 0.9;
    font-size: 14px;
}

.header-left {
    flex: 1;
}

.header-right {
    text-align: right;
}

.update-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 8px;
}

.update-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.time-display {
    font-size: 12px;
    opacity: 0.8;
}

.section-header {
    background-color: #202020;
    color: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header.critical {
    border-left-color: #e74c3c;
    /* background: linear-gradient(135deg, #fff5f5 0%, #fff 100%); */
    /* background: #b9baa3; */
    background-color: #202020;
    color: white;
}

.section-header.profitable {
    border-left-color: #27ae60;
    background-color: #202020;
    /* background: linear-gradient(135deg, #f0fff4 0%, #fff 100%); */
    color: white;
}

.section-header.neutral {
    border-left-color: #f39c12;
    background-color: #202020;
    /* background: linear-gradient(135deg, #fffdf0 0%, #fff 100%); */
    color: white;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.section-stats {
    font-size: 14px;
    color: white;
    /* color: #6c757d; */
}

.test-card {
    background: #303030;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-left: 3px solid;
}

.test-card.critical {
    border-left-color: #e74c3c;
}

.test-card.profitable {
    border-left-color: #27ae60;
}

.test-card.neutral {
    border-left-color: #f39c12;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.test-info {
    flex: 1;
}

.test-title {
    font-size: 14px;
    font-weight: 600;
    /* color: #2c3e50; */
    color: white;
    margin-bottom: 4px;
}

.test-meta {
    font-size: 12px;
    /* color: #6c757d; */
    color: white;
}

.test-meta a {
    color: #3498db;
    text-decoration: none;
}

.test-meta a:hover {
    text-decoration: underline;
}

.revenue-impact {
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-left: 12px;
    min-width: 80px;
    text-align: center;
}

.revenue-impact.negative {
    background: #500000;
}

.revenue-impact.positive {
    background: #003300;
}

.revenue-impact.neutral {
    background: #95a5a6;
}

.test-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 12px;
    color: white;
}

.metrics {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: white;
}

.metric {
    text-align: center;
}

.metric-label {
    /* color: #6c757d; */
    color: white;
    margin-bottom: 2px;
    font-size: 10px;
    text-transform: uppercase;
}

.metric-value {
    font-weight: 600;
    /* color: #2c3e50; */
    color:white;
}

.variation-details {
    font-size: 12px;
    line-height: 1.4;
}

.variation-details strong {
    color: #2c3e50;
}

.test-recommendation {
    background: #404040;
    border: 1px solid #e0e6ff;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.recommendation-header {
    /* color: #6c5ce7; */
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-text {
    /* color: #4a5568; */
    color: white;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.urgent-indicator {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.profit-indicator {
    background: #303030;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.no-tests {
    background: #a5a5a5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.variant-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    /* keep label on one line */
    max-width: 100%;
    /* prevent overflow */
}

a {
    text-decoration: none;
    /* remove underline */
    color: inherit;
    /* use parent’s text color */
}

.variant-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.variant-stats {
    font-weight: normal;
    font-size: 10px;
    opacity: 0.9;
}
