/* General Styles */
:root {
  --red-ui-node-icon-background-color-opacity:1;

  /* Fonts */
  --red-ui-primary-font: 'Nunito Sans' !important;
  --red-ui-primary-font-size: 15px;
  --monospace-font: 'Nunito Sans' !important;

  /* Colors */
  --red-ui-link-color: #000000;
  --red-ui-node-port-background: #E1E6F2;
  --red-ui-node-status-changed-background:#0059A6;
  --red-ui-node-status-changed-border:##A5B4D5;
  --red-ui-port-selected-color:#A5B4D5;
  --red-ui-palette-header-background: #F0F3F9;
  --red-ui-palette-header-color:#353B49;
  --red-ui-view-background: #ffffff;
  --red-ui-header-menu-color: #c62828;
  --red-ui-workspace-button-background-primary: #0059A6;
  --red-ui-node-icon-background-color-fill: #E1E6F2;
  --red-ui-node-icon-background-color: #E1E6F2;
  --red-ui-header-background: #e5edff;
  --red-ui-header-height: 56px;
  --red-ui-header-button-background-active: #e4edff;
  --red-ui-header-menu-color: #353b49;
  --red-ui-header-menu-color-disabled: #A5B4D5;
    --red-ui-header-menu-heading-color: #A5B4D5;
    --red-ui-header-menu-background: #F8FAFF;
    --red-ui-header-menu-item-hover: #e5edff;
  --red-ui-header-accent: #e5edff;
  --red-ui-primary-background: #F8FAFF;
  --red-ui-workspace-button-alert: #A7003A;
  --red-ui-secondary-border-colo:#DBDBDB;
  --red-ui-link-color: #A5B4D5;
  --red-ui-node-border: #A5B4D5;
  --red-ui-node-icon-border-color:#A5B4D5;
  --red-ui-node-label-color: #353B49;
  --red-ui-node-icon-border-color-opacity:1;
  --red-ui-node-selected-color:#7A89AC;
  --red-ui-workspace-button-color-selected:#A5B4D5;
  --red-ui-primary-border-color:#A5B4D5;
  --red-ui-secondary-border-color:#A5B4D5;
  --red-ui-workspace-button-background:#F8FAFF;
  --red-ui-workspace-button-background-active:#F8FAFF;


  /* Additional Colors */
  --color-deploy-button-hover: #173760;
  --color-deploy-button-disabled: #0059A6;
  --color-deploy-button: #0059A6;
  --color-reset-button-hover: #6E84A3;
  --color-reset-button-disabled: #6E84A3;
  --color-reset-button: #6E84A3;
  --color-button-cancel: #616D88;
  --color-button-cancel-background: #E1E6F2;
  --color-button-cancel-hover: #CAD5ED;
  --color-button-save-background: #0059A6;
  --color-button-save-hover: #1C4973;
  --color-button-delete-background: #FFFFFF;
  --color-button-delete-hover: #FFECED;
  --color-button-delete-border: #FFB2BB;
  --color-button-save-border: #0059A6;
  --color-button-cancel-border: #E1E6F2;
  --color-button-delete-color: #A7003A;
}

@font-face {
  font-family: "Nunito Sans";
  src: url('/workflow/v1/builder/fonts/nunitosans/NunitoSans.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

body.lynkup-mode-loading #red-ui-palette-container {
  visibility: hidden;
}

.lynk-banner-info {
  border-left: 4px solid #42a5f5;
  background-color: #e3f2fd;
  color: #0d47a1;
  padding: 10px;
  border-radius: 4px;
}

.lynk-banner-warn {
  border-left: 4px solid #fbc02d;
  background-color: #fff8e1;
  color: #795548;
  padding: 10px;
  border-radius: 4px;
}

.lynk-banner-error {
  border-left: 4px solid #ef5350;
  background-color: #ffebee;
  color: #b71c1c;
  padding: 10px;
  border-radius: 4px;
}

.lynk-node-disabled,
.lynk-node-disabled .red-ui-palette-icon-container,
.lynk-node-disabled .red-ui-palette-label {
  opacity: 0.4 !important;
  /* Dim the elements */
  filter: grayscale(100%);
  /* Make the icon gray */
  pointer-events: none;
  /* Prevent interaction */
}

.lynk-node-removed {
  display: none !important;
}


/* Container for Login button + Forgot Password link */
.lynkup-login-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-top: 10px;
}

/* Forgot password link */
.lynkup-forgot-password {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
  padding-right: 15px;
}

.lynkup-forgot-password:hover {
  text-decoration: underline;
}

.lynkup-modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.lynkup-modal {
  background: white;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: Segoe UI, sans-serif;
}

.lynkup-modal-title {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
}

.lynkup-label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

.lynkup-input {
  width: -webkit-fill-available;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.lynkup-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lynkup-btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.lynkup-btn.cancel {
  background: #e5e7eb;
}

.lynkup-btn.submit {
  background: #2563eb;
  color: white;
}

.lynkup-notification {
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-weight: bold;
  display: none;
}

.lynkup-notification.success {
  background-color: #dcfce7;
  color: #166534;
}

.lynkup-notification.error {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* User Menu Container */
#red-ui-header-button-user-submenu {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #f9fafb;
  padding: 6px 0;
  font-family: 'Segoe UI', sans-serif;
  min-width: 220px;
  z-index: 9999;
}

/* Common item layout */
#red-ui-header-button-user-submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #111827;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
  border-radius: 6px;
}

/* Hover style for clickable items */
#red-ui-header-button-user-submenu li:not(.disabled) a:hover {
  background-color: #e5e7eb;
}

/* Email row (disabled header-style item) */
#usermenu-item-username {
  pointer-events: none;
}

#usermenu-item-username .red-ui-menu-label span {
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

#usermenu-item-username .red-ui-menu-label span::before {
  content: '\1F464';
  /* 👤 */
  font-size: 14px;
}

/* Add User icon */
#usermenu-item-add-user::before {
  content: '\2795';
  /* ➕ */
  font-weight: bold;
  font-size: 14px;
  color: #111827;
}

/* Logout icon */
#usermenu-item-logout::before {
  content: '\1F6AA';
  /* 🚪 */
  font-size: 14px;
  color: #b91c1c;
}

/* Optional hover coloring for logout (without button feel) */
#usermenu-item-logout {
  color: red !important;
}


.red-ui-table th,
.red-ui-table td {
  padding: 12px 16px;
}

#lynkup-workflow-picker {
  position: absolute;
  top: var(--red-ui-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: white;
  z-index: 10;
  padding: 30px;
}

/* Hide elements you don't want in workflow picker mode */
body.workflow-picker-mode #red-ui-main-container,
body.workflow-picker-mode #red-ui-header-button-reset,
body.workflow-picker-mode #red-ui-header-button-deploy,
body.workflow-picker-mode #red-ui-header-button-sidemenu {
  display: none !important;
}

#lynkup-workflow-picker {
  position: absolute;
  top: var(--red-ui-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background: #f8fafc;
  padding: 24px;
  font-family: 'Inter', sans-serif;
  z-index: 20;
}

.workflow-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.workflow-picker-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
}

.workflow-picker-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.workflow-picker-table thead {
  background: #f1f5f9;
  text-align: left;
  font-size: 14px;
  color: #64748b;
}

.workflow-picker-table th,
.workflow-picker-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.workflow-picker-table td button {
  background: #2C7BE5;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.workflow-picker-empty {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}

.lynkup-create-button {
  background-color: #2C7BE5;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.lynkup-create-button:hover,
.workflow-picker-table td button:hover {
  background-color: #1a68d1;
}

#node-dialog-login {
  background: #f9fbfd;
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
  color: #111827;
  min-width: 400px;
}

#node-dialog-login-image {
  width: 160px;
  margin: 0 auto 24px;
  display: block;
}

#node-dialog-login label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  margin-top: 16px;
}


#node-dialog-login input:focus,
#node-dialog-login select:focus {
  border-color: #2563eb;
  outline: none;
}

.lynkup-login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}



.lynkup-forgot-password {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  margin-right: auto;
}

.lynkup-forgot-password:hover {
  text-decoration: underline;
}

/* Optional: Center the login dialog */
.ui-dialog.red-ui-editor-dialog {
  border: none;
  padding: 0;
}

.ui-dialog.red-ui-editor-dialog .ui-dialog-titlebar {
  display: none;
}

/* Overall layout */
.lynkup-login-wrapper {
  background: #f9fbfd !important;
  padding: 40px !important;
  border-radius: 12px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

/* Form side spacing */
#node-dialog-login-fields {
  margin: 0 !important;
}

/* Input fields */
#node-dialog-login-fields input[type="text"],
#node-dialog-login-fields input[type="password"],
#builder-mode {
  padding: 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* Login actions */
.lynkup-login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 20px;
}

/* Link */
.lynkup-forgot-password {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.lynkup-forgot-password:hover {
  text-decoration: underline;
}

/* Login button */
#node-dialog-login-submit {
  background-color: #2C7BE5 !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#node-dialog-login-submit:hover {
  background-color: #1a68d1 !important;
}
#node-dialog-login-fields .form-row {
  margin-bottom: 0px !important;
}

#node-dialog-login-submit:disabled {
  background-color: #6895e0 !important;
  cursor: not-allowed;
  opacity: 0.5;
}

#node-dialog-login-failed {
  bottom: 7px;
  position: absolute;
  left: 46%;
}
#red-ui-header .red-ui-header-logo a:focus,
#red-ui-header .red-ui-header-logo a:active {
  outline: none;
  box-shadow: none;
  background: none;
  border: none;
}