.sidebar {
    width: 250px;
    height: 100vh;
    border-right: 1px solid #dee2e6;
    padding: 20px;
}



.workflow-component:active {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Style for the dragging state */
.ui-draggable-dragging {
    opacity: 0.8;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.workflow-area {
    flex: 1;
    height: 100vh;
    position: relative;
    background: #f8f9fa;
    overflow: auto;
}

.component {
    padding: 10px;
    margin: 5px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 10px;
}

.component img {
    height: 60px;
    object-fit: contain;
}

.workflow-component {
    position: absolute;
    min-width: 150px;
    padding: 15px;
    background: white;
    border: 1px solid #0d6efd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.workflow-component .component-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workflow-component img {
    height: 60px;
    object-fit: contain;
}

.connection-point {
    width: 12px;
    height: 12px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    z-index: 2;
}

.input-point {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
}

.output-point {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
}

.connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-path {
    fill: none;
    stroke: #0d6efd;
    stroke-width: 2;
    marker-end: url(#arrowhead);
}

.component-config {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    border-left: 1px solid #dee2e6;
    padding: 20px;
    z-index: 1000;
}

.delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: 2px solid white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.delete-btn:hover {
    background: #c82333;
}

.workflow-component:hover .delete-btn {
    display: flex;
}


.connection-path {
    cursor: pointer;
    transition: stroke-width 0.2s ease;
}

.connection-hover {
    stroke-width: 3;
    stroke: #0056b3;
}

.connection-delete-btn {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 2px solid white;
}

.connection-delete-btn:hover {
    background: #c82333;
    transform: translate(-50%, -50%) scale(1.1);
}


.file-upload-component {
    border: 2px dashed #dee2e6;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-component:hover {
    border-color: #0d6efd;
    background: #f1f8ff;
}

.file-upload-component.dragover {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.upload-icon {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 10px;
}

#uploadStatus.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#uploadStatus.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.hidClass {
    display: none !important;
}

.connection-path {
    fill: none;
    stroke: #0d6efd;
    stroke-width: 2;
    marker-end: url(#arrowhead);
}

.connection-hover {
    stroke-width: 3;
    stroke: #0056b3;
}

.connection-group {
    pointer-events: all;
}




/* Template List Modal Styles */
.template-table {
    margin-bottom: 0;
}

.template-table th {
    font-weight: 600;
    padding: 1rem;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.template-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.template-table tbody tr {
    transition: all 0.2s ease;
}

.template-table tbody tr:hover {
    background-color: #f8f9fa;
}

.template-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-name {
    font-weight: 500;
    color: #2c3e50;
}

.template-date {
    color: #6c757d;
    font-size: 0.9em;
}

.template-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.template-actions .btn {
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.template-actions .btn i {
    font-size: 1.1em;
}

.btn-edit {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* Search bar styles */
.input-group-text {
    background-color: transparent;
    border-right: none;
}

#templateSearch {
    border-left: none;
    box-shadow: none;
}

#templateSearch:focus {
    border-color: #dee2e6;
}

#templateSearch:focus + .input-group-text {
    border-color: #dee2e6;
}

/* Empty state style */
.template-empty-state {
    padding: 3rem;
    text-align: center;
    color: #6c757d;
}

.template-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-header{
    background-color: #9ec1eb !important;
}