#changePasswordModal,
#switchWorkspaceModal,
#logoutConfirmModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

#changePasswordModal .modal-content,
#switchWorkspaceModal .modal-content,
#logoutConfirmModal .modal-content {
  background: white;
  border-radius: 12px;
  padding: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

#changePasswordModal .modal-header,
#switchWorkspaceModal .modal-header,
#logoutConfirmModal .modal-header {
  padding: 20px 25px 0;
  border-bottom: none;
}

#changePasswordModal .modal-title,
#switchWorkspaceModal .modal-title,
#logoutConfirmModal .modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #424242;
  margin: 0;
  width: 100%;
  text-align: center;
}

#changePasswordModal .modal-close,
#switchWorkspaceModal .modal-close,
#logoutConfirmModal .modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: #e8e8ed;
  border: none;
  font-size: 12px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

#changePasswordModal .modal-close:hover,
#switchWorkspaceModal .modal-close:hover,
#logoutConfirmModal .modal-close:hover {
  background: #d8d8dd;
  color: #212529;
}

#changePasswordModal .modal-body,
#switchWorkspaceModal .modal-body,
#logoutConfirmModal .modal-body {
  padding: 20px 25px;
}

#changePasswordModal .modal-footer,
#logoutConfirmModal .modal-footer {
  padding: 0 25px 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

#changePasswordModal .btn-primary {
  background: #246cf9;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

#changePasswordModal .btn-primary:hover {
  background: #1a5ad4;
}

#changePasswordModal .btn-secondary {
  background: #e2e2ec;
  color: #424242;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

#changePasswordModal .btn-secondary:hover {
  background: #d0d0dc;
}

#changePasswordModal .input-group {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

#changePasswordModal .input-group.invalid {
  border: 1px solid #dc3545;
}

#changePasswordModal .input-group.valid {
  border: 1px solid #28a745;
}

#changePasswordModal .input-group-text {
  border: none !important;
  background: transparent !important;
  padding: 12px 15px;
}

#changePasswordModal .form-control {
  border: none !important;
  box-shadow: none !important;
  padding: 12px 15px;
}

#changePasswordModal .form-control:focus {
  border: none !important;
  box-shadow: none !important;
}

#changePasswordModal .password-toggle {
  border: none !important;
  background: transparent !important;
  padding: 12px 15px;
}

#changePasswordModal .password-requirements {
  font-size: 0.875rem;
}

#changePasswordModal .requirement {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  color: #6c757d;
}

#changePasswordModal .requirement i {
  margin-right: 8px;
}

#changePasswordModal .invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 5px;
}

#changePasswordModal .invalid-feedback.show {
  display: block;
}

#changePasswordModal .alert {
  font-size: 0.875rem;
  padding: 12px 15px;
  border-radius: 8px;
}

#switchWorkspaceModal .modal-content {
  max-width: 450px;
  max-height: 70vh;
}

#switchWorkspaceModal .modal-body {
  max-height: 400px;
  overflow-y: auto;
}

.workspace-card {
  background: #f4f8fb;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.workspace-card:hover {
  background: #e9ecef;
  border-color: #0066ff;
  transform: translateY(-1px);
}

.workspace-card.selected {
  background: #0066ff;
  color: white;
  border-color: #0066ff;
}

.workspace-card.selected:hover {
  background: #0056d6;
}

.workspace-name {
  font-weight: 700;
  font-size: 16px;
  color: #424242;
  margin-bottom: 0.25rem;
}

.workspace-member {
  font-size: 0.8rem;
  color: #6c757d;
}

.workspace-card.selected .workspace-member {
  color: rgba(255, 255, 255, 0.8);
}

.workspace-card.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #0066ff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn-cancel-custom {
  background: #e2e2ec;
  color: #424242;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-custom:hover {
  background: #d0d0dc;
}

.btn-logout-custom {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout-custom:hover {
  background: #c82333;
}

.error-message,
.success-message {
  font-size: 0.875rem;
  border-radius: 6px;
}
