:root {
  --primary-color: #246cf9;
  --secondary-color: #6c757d;
  --success-color: #20c997;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-2: #6c757d;
  --gray-6: #424242;
}

* {
  font-family: "Inter", sans-serif;
}

/* Settings Navigation */
.settings-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.settings-nav .nav-link {
  color: var(--gray-color);
  border: none;
  background: none;
  padding: 8px 12px;
  margin-right: 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.settings-nav .nav-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.settings-nav .nav-link:hover {
  color: var(--primary-color);
}

/* Settings Sidebar */
.settings-sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 32px;
  color: var(--gray-2);
  text-decoration: none;
  border-radius: 0;
  margin-bottom: 0.25rem;
  transition: none;
  background: white;
  border: none;
  width: 100%;
  height: 44px;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
}

.settings-sidebar .nav-link:hover {
  background: white;
  color: var(--gray-2);
}

.settings-sidebar .nav-link.active {
  background-color: #eff5fb;
  color: var(--primary-color);
  width: 100%;
  height: 44px;
  gap: 12px;
  opacity: 1;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
}

.settings-section {
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6rem;
}

.section-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #424242;
  margin: 0;
}

.section-description {
  font-size: 0.875rem;
  color: var(--gray-2);
  margin: 0;
}

.section-status {
  font-size: 0.875rem;
  color: var(--gray-2);
  margin-top: 0.25rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.freeze-frozen-text {
  color: #e11d48;
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0 0 0;
}

#freezeWorkspaceContent .btn-danger {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, #4685ff 0%, #246cf9 100%);
  border: none;
  margin-top: 12px;
}

.btn-outline-success {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-outline-success:hover,
.btn-outline-success:active,
.btn-outline-success:focus {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-outline-danger {
  background-color: var(--danger-color);
  color: white;
  border: none;
}

.btn-outline-danger:hover,
.btn-outline-danger:active,
.btn-outline-danger:focus {
  background-color: var(--danger-color);
  color: white;
  border: none;
}

.alert-danger {
  color: red;
  background-color: transparent !important;
  border: none !important;
}

/* SweetAlert2 Custom Styles */
.swal2-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0%;
  text-align: center;
  color: var(--gray-6);
}

.swal2-html-container {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.swal2-cancel {
  background-color: white;
  border: none !important;
  color: var(--primary-color);
  font-weight: bold;
  font-family: "Inter", sans-serif;
}

.swal2-cancel:hover,
.swal2-cancel:active,
.swal2-cancel:focus {
  background-color: white !important;
  border: none !important;
  color: var(--primary-color);
  font-weight: bold;
  font-family: "Inter", sans-serif;
}

.swal2-confirm {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: bold;
}

.swal2-confirm:hover,
.swal2-confirm:active,
.swal2-confirm:focus {
  background-color: var(--primary-color) !important;
  border: none !important;
  font-weight: bold;
  color: white !important;
}

/* Custom SweetAlert2 Popup Styles */
.swal-custom-popup {
  border-radius: 8px;
  padding: 24px;
  max-width: 600px;
  position: relative;
}

.swal-custom-popup .swal2-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background-color: #e8e8ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #6c757d;
  transition: background-color 0.2s;
}

.swal-custom-popup .swal2-close:hover {
  background-color: #d1d5db;
}

.swal-custom-title {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.swal-custom-confirm {
  background-color: #3b82f6 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-left: 8px;
}

.swal-custom-confirm:hover {
  background-color: #2563eb !important;
}

.swal-custom-danger {
  background-color: #dc2626 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-left: 8px;
}

.swal-custom-danger:hover {
  background-color: #b91c1c !important;
}

.swal-custom-cancel {
  background-color: #e5e7eb !important;
  color: #374151 !important;
  border: none !important;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.swal-custom-cancel:hover {
  background-color: #d1d5db !important;
}

/* Freeze workspace confirm modal */
.modal.confirm-modal.freeze-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.confirm-modal.freeze-modal .modal-content {
  background: white;
  width: 724px;
  padding: 50px;
  position: relative;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  max-width: none;
  box-shadow: none;
}

.modal.confirm-modal.freeze-modal .modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #e8e8ed;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #6c757d;
  padding: 0;
  line-height: 1;
  transition: background-color 0.2s;
}

.modal.confirm-modal.freeze-modal .modal-close-btn:hover {
  background: #d1d5db;
  color: #343a40;
}

.modal.confirm-modal.freeze-modal .modal-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
  color: #374151;
  margin-bottom: 24px;
}

.modal.confirm-modal.freeze-modal .modal-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal.confirm-modal.freeze-modal .modal-message .warning-icon {
  color: #f0ad4e;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.modal.confirm-modal.freeze-modal .modal-message p {
  margin: 0 0 8px 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

.modal.confirm-modal.freeze-modal .modal-message p:last-child {
  margin-bottom: 0;
}

.modal.confirm-modal.freeze-modal .modal-message ul {
  margin: 0 0 8px 0;
  padding-left: 20px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 22px;
}

.modal.confirm-modal.freeze-modal .modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 40px;
}

.modal.confirm-modal.freeze-modal .modal-buttons .btn-modal-cancel {
  background: #ffffff;
  color: #327cc8;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  border: none;
  padding: 13px 20px;
  cursor: pointer;
}

.modal.confirm-modal.freeze-modal .modal-buttons .btn-modal-cancel:hover {
  background: #f8f9fa;
}

.modal.confirm-modal.freeze-modal .modal-buttons .btn-modal-confirm-danger {
  background: #df2d2d;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
}

.modal.confirm-modal.freeze-modal
  .modal-buttons
  .btn-modal-confirm-danger:hover {
  background: #c52828;
}

/* One-time address confirm modal (matches Require BitTransit Approval style) */
.modal.confirm-modal.one-time-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.confirm-modal.one-time-modal .modal-content {
  background: white;
  width: 724px;
  padding: 50px;
  position: relative;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  max-width: none;
  box-shadow: none;
}

.modal.confirm-modal.one-time-modal .modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #e8e8ed;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #6c757d;
  padding: 0;
  line-height: 1;
  transition: background-color 0.2s;
}

.modal.confirm-modal.one-time-modal .modal-close-btn:hover {
  background: #d1d5db;
  color: #343a40;
}

.modal.confirm-modal.one-time-modal .modal-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
  color: #374151;
  margin-bottom: 24px;
}

.modal.confirm-modal.one-time-modal .modal-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: center;
}

.modal.confirm-modal.one-time-modal .modal-message .warning-icon {
  color: #f0ad4e;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.modal.confirm-modal.one-time-modal .modal-message p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

.modal.confirm-modal.one-time-modal .modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 40px;
}

.modal.confirm-modal.one-time-modal .modal-buttons .btn-modal-cancel {
  background: #ffffff;
  color: #327cc8;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  border: none;
  padding: 13px 20px;
  cursor: pointer;
}

.modal.confirm-modal.one-time-modal .modal-buttons .btn-modal-cancel:hover {
  background: #f8f9fa;
}

.modal.confirm-modal.one-time-modal .modal-buttons .btn-modal-confirm {
  background: linear-gradient(180deg, #4685ff 0%, #246cf9 100%);
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
}

.modal.confirm-modal.one-time-modal .modal-buttons .btn-modal-confirm:hover {
  background: linear-gradient(180deg, #3a7ae8 0%, #1d5fd6 100%);
}

.modal.confirm-modal.one-time-modal .modal-buttons .btn-modal-confirm-danger {
  background: #df2d2d;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
}

.modal.confirm-modal.one-time-modal
  .modal-buttons
  .btn-modal-confirm-danger:hover {
  background: #c52828;
}

/* Custom Toast Styles */
.custom-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 350px;
  font-family: "Inter", sans-serif;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: var(--light-color);
  overflow: hidden;
}

.custom-toast-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-toast-header.success {
  background-color: var(--success-color);
}

.custom-toast-header.error {
  background-color: var(--danger-color);
}

.custom-toast-header .toast-icon {
  margin-right: 0.5rem;
}

.custom-toast-header .toast-title {
  flex-grow: 1;
  font-weight: 700;
}

.custom-toast-header .toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.8;
}

.custom-toast-header .toast-close:hover {
  opacity: 1;
}

.custom-toast-body {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--dark-color);
}

.custom-toast.fade-in {
  animation: fadeIn 0.3s ease-in;
}

.custom-toast.fade-out {
  animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .settings-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .settings-nav::-webkit-scrollbar {
    display: none;
  }

  .settings-nav .nav-link {
    white-space: nowrap;
    margin-right: 1rem;
    font-size: 0.875rem;
  }

  .row.g-4 {
    --bs-gutter-x: 1rem;
  }

  .settings-sidebar {
    margin-bottom: 1rem;
  }

  .settings-sidebar .nav-link {
    width: 100%;
  }

  .settings-sidebar .nav-link.active {
    width: 100%;
  }

  .custom-toast {
    max-width: 90%;
  }
}
