/* Cross-Browser Sync Info Styles */
.sync-info-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9998;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease;
}

.sync-info-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sync-info-badge .sync-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
}

.sync-info-badge.syncing .sync-icon {
    animation: rotate 1s linear infinite;
}

.sync-info-badge.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.sync-info-badge.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Sync Info Tooltip */
.sync-info-tooltip {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    color: #1f2937;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

.sync-info-tooltip.show {
    display: block;
}

.sync-info-tooltip h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

.sync-info-tooltip p {
    margin: 0 0 8px 0;
    font-size: 12px;
    line-height: 1.5;
}

.sync-info-tooltip ul {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
}

.sync-info-tooltip ul li {
    margin-bottom: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sync-info-badge {
        bottom: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .sync-info-tooltip {
        bottom: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
