/* ============================================
   Offline Indicator Styles
   Issue #255 - PWA Offline Support
   Uses brand tokens from css/core.css
   ============================================ */

.offline-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.offline-banner--offline {
    background: var(--accent-danger, #d16464);
    color: var(--text-primary, #e8e4df);
}

.offline-banner--syncing {
    background: var(--accent-primary, #c8956c);
    color: #1c1f22;
}

.offline-banner--online {
    display: none;
}

.offline-banner__counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    padding: 2px 8px;
    border-radius: var(--border-radius, 6px);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
}

.offline-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.offline-status-dot--online {
    background: var(--accent-success, #5a9e6f);
    box-shadow: 0 0 4px var(--accent-success, #5a9e6f);
}

.offline-status-dot--offline {
    background: var(--accent-danger, #d16464);
    box-shadow: 0 0 4px var(--accent-danger, #d16464);
}

.offline-status-dot--syncing {
    background: var(--accent-primary, #c8956c);
    box-shadow: 0 0 4px var(--accent-primary, #c8956c);
    animation: offline-dot-pulse 1.2s ease-in-out infinite;
}

@keyframes offline-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
