#explore, #actions {
    height: calc(100vh - 200px);
}

.nav-pills .nav-link {

    margin: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

#actions-list .nav-pills .nav-link {
    /* background-color: transparent!important;
    background: transparent!important; */
}

#actions-list .nav-pills .nav-link:hover {
    background-color: rgba(var(--tblr-primary-rgb),.2)!important;
    background: rgba(var(--tblr-primary-rgb),.2)!important;
}

#actions-list .nav-pills .nav-link.active {
    background-color: rgba(var(--tblr-primary-rgb),.1)!important;
    background: rgba(var(--tblr-primary-rgb),.1)!important;
    border: 2px solid rgba(var(--tblr-primary-rgb),.3)!important;
    color: #222222!important;
}

#actions-list .nav-pills .nav-link {
    margin: 0.25rem 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* Select2 styles */
.select2-container--default .select2-selection--single {
    border-color: #e2e5e8;
    border-radius: 0.25rem;
    height: 38px;
    padding: 0.375rem 0.75rem;
    display: none;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
    padding-left: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Flow Diagram Styles */
#flow-diagram-root {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

/* Estilos para nós de evento */
.react-flow__node.event-node {
    background: #0f1ebd;
    border: 1px solid #0f1ebd;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(15, 30, 189, 0.3);
    min-width: 240px;
}

.react-flow__node.event-node .event-node-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
}

.react-flow__node.event-node .event-node-header i {
    font-size: 20px;
}

.react-flow__node.event-node .event-node-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 12px;
    text-align: center;
}

/* Nós root - cor sólida #0f1ebd */
.react-flow__node.root {
    background: #0f1ebd;
    border: 2px solid #0f1ebd;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 240px;
}

/* Nós triggered (filhos) - fundo branco com borda #0f1ebd */
.react-flow__node.triggered {
    background: white;
    border: 2px solid #0f1ebd;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 240px;
}

.react-flow__node.root .node-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: white;
    font-size: 13px;
}

.react-flow__node.root .node-header i {
    font-size: 18px;
}

.react-flow__node.root .node-action {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 11px;
}

.react-flow__node.root .node-action i {
    font-size: 14px;
}

.react-flow__node.triggered .node-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #0f1ebd;
    font-size: 13px;
}

.react-flow__node.triggered .node-header i {
    font-size: 18px;
}

.react-flow__node.triggered .node-action {
    background: #f5f5f5;
    padding: 8px 14px;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    color: #333;
    font-size: 11px;
}

.react-flow__node.triggered .node-action i {
    font-size: 14px;
}

/* Todas as linhas conectoras - pontilhadas #999999 com animação */
.react-flow__edge-path {
    stroke: #999999;
    stroke-width: 2;
    stroke-dasharray: 5;
    animation: dashdraw 0.5s linear infinite;
}

@keyframes dashdraw {
    from { stroke-dashoffset: 10; }
    to { stroke-dashoffset: 0; }
}

/* ========================================
   Action Builder Modal Styles
   ======================================== */

/* Container principal com duas colunas */
.action-builder {
    display: flex;
    min-height: 500px;
}

.action-builder-column {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.action-builder-column:first-child {
    border-right: 1px solid #e9ecef;
}

.action-builder .column-title {
    font-size: 1rem;
    font-weight: 600;
    color: #344767;
    margin-bottom: 20px;
}

/* Item da lista */
.action-builder .action-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    border: 1px solid transparent;
}

.action-builder .action-item:hover {
    background: rgba(var(--tblr-primary-rgb), 0.08);
    border-color: rgba(var(--tblr-primary-rgb), 0.2);
}

.action-builder .action-item .item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tblr-primary-rgb), 0.1);
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.action-builder .action-item .item-icon i {
    font-size: 1.1rem;
    color: var(--tblr-primary);
}

.action-builder .action-item .item-text {
    font-size: 0.9rem;
    color: #344767;
}

/* Estado selecionado - cabeçalho do item */
.action-builder .action-item-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e9ecef;
    border-bottom: none;
}

.action-builder .action-item-header .item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tblr-primary-rgb), 0.1);
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.action-builder .action-item-header .item-icon i {
    font-size: 1.1rem;
    color: var(--tblr-primary);
}

.action-builder .action-item-header .item-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #344767;
    flex: 1;
}

.action-builder .action-item-header .btn-close-item {
    padding: 0;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #8392ab;
    cursor: pointer;
}

.action-builder .action-item-header .btn-close-item:hover {
    color: #344767;
}

/* Painel de configuração */
.action-builder .config-panel {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    padding: 20px;
}

.action-builder .config-panel .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #344767;
    margin-bottom: 8px;
}

.action-builder .config-panel .form-select,
.action-builder .config-panel .form-control {
    border-radius: 6px;
    border: 1px solid #d2d6da;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.action-builder .config-panel .form-select:focus,
.action-builder .config-panel .form-control:focus {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb), 0.1);
}

/* Seção de condições */
.action-builder .conditions-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.action-builder .conditions-title {
    font-size: 0.9rem;
    color: #8392ab;
    margin-bottom: 12px;
}

.action-builder .btn-add-condition {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--tblr-primary);
    border-radius: 20px;
    background: transparent;
    color: var(--tblr-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-builder .btn-add-condition:hover {
    background: var(--tblr-primary);
    color: #fff;
}

.action-builder .btn-add-condition i {
    margin-right: 6px;
}

/* Condition row */
.action-builder .condition-row {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.action-builder .condition-row .form-control,
.action-builder .condition-row .form-select {
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* Campos básicos no topo */
.action-builder-basic-fields {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Hidden state */
.action-builder .hidden {
    display: none !important;
}

/* Lista de items quando não selecionado */
.action-builder .items-list {
    display: block;
}

/* Formulário de configuração selecionada */
.action-builder .selected-config {
    display: none;
}

.action-builder .selected-config.active {
    display: block;
}