/* Sync Status Dropdown Styles */

.sync-status-dropdown {
  position: relative;
}

.sync-status-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  transition: all 0.2s;
  cursor: pointer;
}

.sync-status-toggle:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.sync-status-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

/* Status colors for toggle button */
.sync-status-toggle.synced {
  background: rgba(25, 135, 84, 0.2);
  border-color: rgba(25, 135, 84, 0.4);
}

.sync-status-toggle.pending {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.4);
}

.sync-status-toggle.syncing {
  background: rgba(13, 110, 253, 0.2);
  border-color: rgba(13, 110, 253, 0.4);
  animation: pulse 2s infinite;
}

.sync-status-toggle.error {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
}

.sync-icon {
  font-size: 1rem;
  line-height: 1;
}

.sync-text {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Dropdown menu */
.sync-status-menu {
  min-width: 450px;
  max-width: 500px;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0;
}

.dropdown-item-custom {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.dropdown-item-custom:last-child {
  border-bottom: none;
}

.dropdown-item-custom .fw-bold {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.dropdown-item-custom .small {
  font-size: 0.8rem;
}

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

/* Navbar integration */
#syncStatusContainer {
  display: flex;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .sync-status-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .sync-text {
    display: none;
  }
  
  .sync-status-menu {
    min-width: 300px;
  }
}
