/**
 * Cloud Sync Styles
 * Provides styling for cloud sync indicator and controls
 */

.cloud-sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: default;
  transition: all 0.2s ease;
}

.cloud-sync-indicator.idle {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.cloud-sync-indicator.syncing {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.cloud-sync-indicator.syncing .sync-icon {
  animation: spin 1s linear infinite;
}

.cloud-sync-indicator.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.cloud-sync-indicator.error,
.cloud-sync-indicator.offline {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cloud-sync-controls {
  padding: 16px;
  background: var(--surface-dark, #1e293b);
  border-radius: 8px;
  border: 1px solid var(--border-color, #334155);
}

.cloud-sync-controls h4 {
  margin: 0 0 12px 0;
  color: var(--text-primary, #f1f5f9);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cloud-sync-controls h4::before {
  content: '☁️';
}

.sync-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sync-info {
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
}

.sync-info p {
  margin: 4px 0;
}

.sync-info code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.sync-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sync-actions .btn {
  flex: 1;
  font-size: 12px;
  padding: 8px 12px;
}

.sync-note {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.4;
}

.header-cloud-sync {
  margin-left: auto;
  margin-right: 12px;
}

.header-cloud-sync .cloud-sync-indicator {
  font-size: 11px;
  padding: 3px 8px;
}

@media (max-width: 768px) {
  .cloud-sync-controls {
    padding: 12px;
  }
  
  .sync-actions {
    flex-direction: column;
  }
  
  .header-cloud-sync .sync-text {
    display: none;
  }
  
  .header-cloud-sync .cloud-sync-indicator {
    padding: 4px 6px;
  }
}

.cloud-sync-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color, #334155);
}

.cloud-sync-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-primary, #f1f5f9);
}
