/* public/fleet/fleet-settings.css */

.fs-container {
  padding: 1rem 0;
}

.fs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.fs-header h2 {
  margin: 0;
  color: var(--text-primary, #e2e8f0);
  font-size: 1.4rem;
}
.fs-btn-dashboard {
  background: var(--bg-secondary, #334155);
  color: var(--text-primary, #e2e8f0);
  border: 1px solid var(--border, #475569);
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Section cards */
.fs-section {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.fs-section h3 {
  margin: 0 0 1rem;
  color: var(--accent, #f39c12);
  font-size: 1.1rem;
}
.fs-section p {
  color: var(--text-muted, #94a3b8);
  margin: 0.3rem 0;
}

/* Toggle switches */
.fs-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border, #334155);
}
.fs-toggle-row:last-child {
  border-bottom: none;
}
.fs-toggle-row span {
  color: var(--text-primary, #e2e8f0);
  font-size: 0.95rem;
}

.fs-toggle {
  position: relative;
  width: 48px;
  height: 26px;
}
.fs-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.fs-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border, #475569);
  border-radius: 26px;
  transition: 0.3s;
}
.fs-slider:before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.fs-toggle input:checked + .fs-slider {
  background: var(--accent, #f39c12);
}
.fs-toggle input:checked + .fs-slider:before {
  transform: translateX(22px);
}

/* Danger Zone */
.fs-danger {
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(239,68,68,0.05);
}
.fs-danger h3 {
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fs-btn-danger {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.fs-btn-danger:hover {
  background: #dc2626;
}

.fs-btn-restore {
  background: var(--accent, #f39c12);
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Pending deletion banner */
.fs-pending-banner {
  background: #7f1d1d;
  color: #fca5a5;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.fs-countdown {
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
}

/* ---- Modal overlay (shared) ---- */
.fs-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.fs-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.fs-modal {
  background: #1e1b1b;
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  color: #fca5a5;
  text-align: center;
  box-shadow: 0 0 60px rgba(239,68,68,0.3);
}

.fs-modal h2 {
  color: #ef4444;
  margin: 0 0 1rem;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.fs-modal p {
  color: #fca5a5;
  margin: 0.8rem 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.fs-modal input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 2px solid #ef4444;
  background: #2a1a1a;
  color: #fca5a5;
  font-size: 1rem;
  text-align: center;
  margin: 1rem 0;
  outline: none;
}
.fs-modal input:focus {
  border-color: #fca5a5;
}

.fs-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.fs-btn-confirm {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}
.fs-btn-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fs-btn-cancel {
  background: transparent;
  border: 1px solid #fca5a5;
  color: #fca5a5;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
}

/* Toast messages */
.fs-toast {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fs-slide-in 0.2s ease;
}
.fs-toast-error {
  background: var(--danger, #7f1d1d);
  color: var(--danger-text, #fca5a5);
  border: 1px solid #ef4444;
}
.fs-toast-success {
  background: var(--success, #14532d);
  color: var(--success-text, #86efac);
  border: 1px solid #22c55e;
}
@keyframes fs-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fs-public-profile {
  margin-top: 2rem;
}
.fs-public-profile .fs-hint {
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.fs-field {
  margin-bottom: 1rem;
}
.fs-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.3rem;
}
.fs-field input,
.fs-field textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border, #334155);
  background: var(--bg-primary, #0f172a);
  color: var(--text-primary, #e2e8f0);
  font-size: 0.95rem;
}
.fs-field input:focus,
.fs-field textarea:focus {
  outline: none;
  border-color: var(--accent, #f39c12);
}
.fs-logo-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fs-form-actions {
  margin-top: 1rem;
}
.fs-preview-card {
  margin-top: 1.5rem;
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--accent, #f39c12);
}
.fs-preview-card h4 {
  margin: 0 0 0.5rem;
  color: var(--accent, #f39c12);
}
.fs-preview-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--text-primary, #e2e8f0);
}