/**
 * roi_navigator.css
 * ------------------------------------------------------------------
 * Styling for the campaign prev/next navigator + drill-down stats
 * used in the ROI banner (see roi_banner.py). Interaction logic
 * lives in roi_navigator.js — this file is purely visual.
 * ------------------------------------------------------------------
 */

:root {
    --roi-green-light: #bfe8c6;
    --roi-green-base: #2fbf71;
    --roi-green-dark: #1f7a46;
    --roi-black-light: #514f59;
    --roi-black-base: #1e1b18;
    --roi-white-base: #faf7f2;
}

.roi-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.roi-nav-icon {
    margin-right: 2px;
    flex-shrink: 0;
}

.roi-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--roi-green-dark);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 150ms ease;
}

.roi-nav-arrow:hover {
    background: var(--roi-green-light);
}

.roi-nav-arrow:active {
    background: var(--roi-green-base);
    color: #ffffff;
}

.roi-nav-current {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 14px;
    border: 1px solid var(--roi-green-light);
    border-radius: 999px;
    background: var(--roi-white-base);

    font-size: 11px;
    font-weight: 600;
    color: var(--roi-black-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Brief flash on the drill-down numbers when the campaign changes */
.roi-banner .roi-fade {
    animation: roi-fade-in 220ms ease;
}

@keyframes roi-fade-in {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 1;
    }
}
