.node-details-popup {
    position: absolute;
    width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1300;
    display: none;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    cursor: move;
}

.node-details-popup.dragging {
    cursor: grabbing;
}

.node-details-header {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    cursor: grab;
}

.node-details-header:active {
    cursor: grabbing;
}

.node-details-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.node-details-close-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
}

.node-details-close-btn:hover {
    color: #334155;
}

.node-details-content {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
    cursor: default;
}

.color-options {
    margin-top: 8px;
}

.color-preset {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.color-preset:hover, .color-preset.active {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 0 0 2px #3b82f6;
}

.color-input-wrapper {
    position: relative;
    overflow: hidden;
}

.form-control-color {
    width: 100%;
    height: 38px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #f1f5f9;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
}

.tag .tag-remove {
    margin-left: 6px;
    cursor: pointer;
    color: #64748b;
    font-size: 10px;
}

.tag .tag-remove:hover {
    color: #e11d48;
}

.address-info-section {
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #f1f5f9;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.address-label {
    font-weight: 500;
    color: #64748b;
}

.address-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    word-break: break-all;
}

.copy-address-btn {
    padding: 2px 4px;
    color: #64748b;
}

.address-identification {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.node-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.node-type-exchange {
    background-color: #fee2e2;
    color: #b91c1c;
}

.node-type-contract {
    background-color: #dbeafe;
    color: #1e40af;
}

.node-type-mixer {
    background-color: #fef3c7;
    color: #92400e;
}

.suggested-tags-wrapper {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #f1f5f9;
}

.suggested-tags-title {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px 0;
}

.suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggested-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e2e8f0;
    border-radius: 12px;
    font-size: 11px;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggested-tag:hover {
    background-color: #cbd5e1;
    transform: translateY(-1px);
}

.explorer-links {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

/* Delete confirmation overlay */
.delete-node-confirm {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1500;
}

.delete-node-confirm-content {
    width: 100%;
    max-width: 300px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

/* Enhanced copy button styling */
.copy-address-btn {
    transition: all 0.2s ease;
    border-radius: 4px;
}

.copy-address-btn:hover {
    background-color: #e2e8f0;
    transform: scale(1.1);
}

/* Explorer links styling */
.explorer-links .btn {
    margin-bottom: 4px;
}

/* Auto-save indicator */
.btn-success {
    transition: all 0.3s ease;
}

/* Improved form inputs */
.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Better tag animations */
.tag {
    transition: all 0.2s ease;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Notification styles for popup context */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1400;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #ef4444;
}

.notification.warning {
    background-color: #f59e0b;
}

.notification.info {
    background-color: #3b82f6;
}