/*!*******************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./assets-sources/scripts/Dashboard/Pages/Automations/EditView/AutomationBuilder/styles.css ***!
  \*******************************************************************************************************************************************************************************************************************************************/
.virfice-automation-builder {
  display: flex;
  min-height: calc(100vh - 200px);
  background: #fefce8;
  position: relative;
}

.automation-flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 0;
}

/* Automation Cards */
.automation-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.automation-item-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.automation-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.automation-card:hover {
  border-color: #84cc16;
  box-shadow: 0 2px 8px rgba(132, 204, 22, 0.1);
}

.automation-card.selected {
  border-color: #84cc16;
  background: #f7fee7;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 6px;
  color: #374151;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.card-status {
  position: absolute;
  top: 12px;
  right: 12px;
}

.card-delete {
  position: absolute;
  top: 12px;
  right: 40px;
  background: #fee2e2;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #dc2626;
  transition: all 0.2s;
}

.card-delete:hover {
  background: #fecaca;
}

/* Connector */
.automation-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
}

.connector-line {
  width: 2px;
  height: 20px;
  background: #d1d5db;
}

.add-step-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.add-step-button:hover {
  transform: scale(1.1);
}

/* Step Type Selector */
.step-type-selector-wrapper {
  margin: 20px 0;
}

.step-type-selector {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: white;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
}

.step-type-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.step-type-option:hover:not(.disabled) {
  border-color: #84cc16;
  background: #f7fee7;
}

.step-type-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-type-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.step-type-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* End Marker */
.automation-end {
  margin-top: 20px;
  padding: 12px 24px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.automation-end::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #6b7280;
  border-radius: 50%;
}

/* Right Sidebar */
.automation-sidebar {
  width: 400px;
  background: white;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: #111827;
}

.sidebar-content {
  flex: 1;
  padding: 24px 20px;
}

.sidebar-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.sidebar-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px 0;
}

.sidebar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 20px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.toggle-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
