/* ===== SISTEMA DE NOTIFICAÇÕES D'CASA ===== */

/* Connection Status Indicator */
.connection-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connection-status.online {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.connection-status.offline {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.connection-status.syncing {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

/* Sync Notifications - Unified Style */
.sync-notification, .pwa-sync-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 300px;
    max-height: 80px;
    min-height: 60px;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideInRight 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.sync-notification.sync-success, .pwa-sync-notification.success {
    background: rgba(34, 197, 94, 0.9);
}

.sync-notification.sync-warning, .pwa-sync-notification.warning {
    background: rgba(245, 158, 11, 0.9);
}

.sync-notification.sync-error, .pwa-sync-notification.error {
    background: rgba(239, 68, 68, 0.9);
}

.sync-notification i, .pwa-sync-notification i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sync-notification span, .pwa-sync-notification span {
    flex: 1;
    line-height: 1.3;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications Stack */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .connection-status {
        top: 5px;
        right: 5px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .sync-notification, .pwa-sync-notification {
        top: 15px;
        right: 15px;
        max-width: 250px;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}
