/* notifications.css — Search progress, sync notifications */

/* 検索プログレスバー */
.search-progress {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-default);
}
.search-progress-bar {
    height: 3px;
    background: var(--border-default);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}
.search-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.2s ease;
}
.search-progress-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* 同期通知バナー */
.sync-notification {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #f39c12;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    max-width: 90vw;
}

.sync-notification.success {
    background: #27ae60;
    color: #fff;
}

.sync-notification.error {
    background: #e74c3c;
    color: #fff;
}

.sync-notification .sync-message {
    flex: 1;
}

.sync-notification .sync-actions {
    display: flex;
    gap: 6px;
}

.sync-btn {
    background: var(--overlay-strong);
    border: none;
    color: inherit;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

.sync-btn:hover {
    background: var(--overlay-intense);
}

.sync-indicator {
    position: absolute;
    top: 2px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    animation: pulse 2s infinite;
}

.sync-indicator.checking {
    background: #f39c12;
}

.sync-indicator.conflict {
    background: #e74c3c;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
