/* Sync Status Indicator Styles */
.sync-status-indicator {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1040;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.sync-status {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 500;
}

.sync-status.syncing {
  border-left: 3px solid #007bff;
  color: #007bff;
}

.sync-status.success {
  border-left: 3px solid #28a745;
  color: #28a745;
}

.sync-status.error {
  border-left: 3px solid #dc3545;
  color: #dc3545;
}

.sync-status.offline {
  border-left: 3px solid #6c757d;
  color: #6c757d;
}

/* Stale data indicator */
.stale-data-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1035;
  background: #fff3cd;
  color: #856404;
  padding: 8px 20px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.stale-data-banner button {
  background: #856404;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.stale-data-banner button:hover {
  background: #704000;
}

/* Last sync timestamp in header */
.sync-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-left: auto;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.sync-info.stale {
  color: #ffc107;
  background: rgba(255, 193, 7, 0.2);
}

.sync-info i {
  font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sync-status-indicator {
    top: auto;
    bottom: 20px;
    right: 10px;
  }
  
  .stale-data-banner {
    width: 90%;
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .sync-info {
    display: none;
  }
}